Pl Sql For Mac Os



This chapter describes how to build and run the SQL*Loader and PL/SQL demonstration programs available with Oracle Database. It contains the following sections:

Feb 12, 2016 With SQL Developer, you can browse database objects, run SQL statements and SQL scripts, edit and debug PL/SQL statements, manipulate and export data, and view and create reports. You may want to check out more Mac applications, such as Cornerstone, which might be similar to SQLDeveloper. (对于 64 位 Intel Macs,请下载 Java for Mac OS X 10.5 Update 1。 对于新版本的 Mac OS,请使用“软件更新”特性) - 在“下载”页面下载 OS X 文件。 - 双击 SQL Developer 图标.

Note:

To use the demonstrations described in this chapter, you must install the Oracle Database Examples included on the Oracle Database 10g Companion CD.

You must also unlock the JONES account and set the password before creating the demonstrations.

7.1 SQL*Loader Demonstrations

Run the ulcase.sh file to run the SQL*Loader demonstrations. To run an individual demonstration, read the information contained in the file to determine how to run it.

7.2 PL/SQL Demonstrations

PL/SQL includes a number of demonstration programs. You must build database objects and load sample data before using these programs. To build the objects and load the sample data:

Pl sql for mac os recovery tool
  1. Change directory to the PL/SQL demonstrations directory:

  2. Start SQL*Plus, and connect as JONES/password:

  3. Run the following commands to build the objects and load the sample data:

    Note:

    Build the demonstrations as any Oracle user with sufficient privileges. Run the demonstrations as the same Oracle user.

PL/SQL Kernel Demonstrations

The following PL/SQL kernel demonstrations are available with the software:

  • examp1.sql to examp8.sql

  • examp11.sql to examp14.sql

  • sample1.sql to sample4.sql

  • extproc.sql

To compile and run the exampn.sql or samplen.sql PL/SQL kernel demonstrations:

  1. Start SQL*Plus, and connect as JONES/password:

  2. Run a command similar to the following to run a demonstration, where demo_name is the name of the demonstration:

Pl Sql For Mac Os

To run the extproc.sql demonstration:

  1. If required, add an entry for external procedures to the tnsnames.ora file, similar to the following:

  2. If required, add an entry for external procedures to the listener.ora file, similar to the following:

    Note:

    The value that you specify for SID_NAME in the listener.ora file must match the value that you specify for SID in the tnsnames.ora file.
    • On HP-UX, Linux, Solaris, and Tru64 UNIX:

    • On AIX:

    • On Mac OS X:

  3. Change directory to $ORACLE_HOME/plsql/demo.

  4. Run the following command to create the extproc.so shared library, build the required database objects, and load the sample data:

    Note:

    On Mac OS X systems, use the shared library name extproc.dylib in the following examples.

    Alternatively, if you have already built the database objects and loaded the sample data, then run the following command:

  5. From SQL*Plus, run the following commands:

  6. To start the demonstration, run the following command:

Pl Sql For Loop

PL/SQL Precompiler Demonstrations

Note:

The make commands shown in this section build the required database objects and load the sample data in the JONES schema.

The following precompiler demonstrations are available:

  • examp9.pc

  • examp10.pc

  • sample5.pc

  • sample6.pc

Pl sql for mac os 10.13

Pl Sql Developer Mac Os

To build the PL/SQL precompiler demonstrations, set the library path environment variable to include the $ORACLE_HOME/lib directory, and run the following commands:

To build a single demonstration, run its name as the argument in the make command. For example, to build the examp9 demonstration, run the following command:

To start the examp9 demonstration, run the following command:

7.3 Calling 32-Bit External Procedures from PL/SQL

Note:

This section applies to AIX, HP-UX, Solaris SPARC, zSeries Linux, and Apple Mac OS X (Intel).

The 64-bit external procedure executable (extproc) and the 32-bit external procedure executable (extproc32) are installed in the $ORACLE_HOME/bin directory. By default, the extproc executable is enabled to run 64-bit external procedures on AIX, HP-UX, Solaris SPARC, and zSeries Linux systems. To enable 32-bit external procedures:

Pl Sql Mac Os X

  1. Set the value of the PROGRAM parameter in the listener.ora file as follows:

  2. Include the $ORACLE_HOME/lib32 directory in one of the following environment variables, depending on your platform:

    PlatformEnvironment Variable
    AIXLIBPATH
    HP-UXSHLIB_PATH
    Linux on POWER, zSeries Linux, and SolarisLD_LIBRARY_PATH
    Apple Mac OS X (Intel)DYLD_LIBRARY_PATH

  3. Restart the listener.

    Note:

    You can configure a listener to run either 32-bit or 64-bit external procedures, but not both at the same time. However, you can configure two listeners if you have to support both 32-bit and 64-bit external procedures.