PK
8Aoa, mimetypeapplication/epub+zipPK 8A iTunesMetadata.plistX
PL/SQL is an extension to the SQL language and is used to create, store, modify, retrieve, and manage information in an Oracle database.
This chapter supplements the Oracle Database PL/SQL Language Reference, with operating system-specific information about the PL/SQL demonstrations.
See your database administrator if the PL/SQL demonstrations have not already been loaded.
The PL/SQL demo scripts do not specify fully qualified file names when including other scripts. To include the necessary prefixes for these files, use the ORAENV
environment variable, SQLPATH
(search path for SQL files), as shown in the following example:
SQLPATH=$ORAC1120.PLSQL.DEMO;<other prefixes>
Note: Before you run PL/SQL, ensure that your database administrator has run the necessary initialization scripts. Refer to the chapter "Creating and Upgrading a Database " in the Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD. |
The demos for the kernel are as follows:
PLSQL.DEMO.PLS-EXAMP1.SQL PLSQL.DEMO.PLS-EXAMP2.SQL PLSQL.DEMO.PLS-EXAMP3.SQL PLSQL.DEMO.PLS-EXAMP4.SQL PLSQL.DEMO.PLS-EXAMP5.SQL PLSQL.DEMO.PLS-EXAMP6.SQL PLSQL.DEMO.PLS-EXAMP7.SQL PLSQL.DEMO.PLS-EXAMP8.SQL PLSQL.DEMO.PLS-EXAMP11.SQL PLSQL.DEMO.PLS-EXAMP12.SQL PLSQL.DEMO.PLS-EXAMP13.SQL PLSQL.DEMO.PLS-EXAMP14.SQL PLSQL.DEMO.PLS-SAMPLE1.SQL PLSQL.DEMO.PLS-SAMPLE2.SQL PLSQL.DEMO.PLS-SAMPLE3.SQL PLSQL.DEMO.PLS-SAMPLE4.SQL
To run these demos, you must first build the demo tables with PLSQL.DEMO.PLS-EXAMPBLD.SQL
and load them with PLSQL.DEMO.PLS-EXAMPLOD.SQL
(under any user ID). The following example shows how to do this and run PLS-SAMPLE1
:
/START-PROGRAM $ORAC1120.SQLPLUS * user/password SQL> @PLS-EXAMPBLD SQL> @PLS-EXAMPLOD SQL> @PLS-SAMPLE1
The demos for the precompilers are as follows:
PLSQL.DEMO.PLS-EXAMP9.PC PLSQL.DEMO.PLS-EXAMP10.PC PLSQL.DEMO.PLS-SAMPLE5.PC PLSQL.DEMO.PLS-SAMPLE6.PC
Before running these demos, you must ensure that these demos are compiled and linked as described in Chapter 5, "Programmatic Interfaces".
Note: You must run the RDBMS demos before loading the precompiler demos. |
User's Guide
11g Release 2 (11.2) for Fujitsu BS2000/OSD
E27507-02
October 2012
Oracle Database User's Guide, 11g Release 2 (11.2) for Fujitsu BS2000/OSD
E27507-02
Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.
Primary Author: Tanvee Ravi
Contributing Author: Janelle Simmons
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.
This chapter provides the BS2000/OSD-specific information that you must use with Oracle Database 11g Release 2 (11.2) for Fujitsu BS2000/OSD.
This chapter contains the following sections:
Every Oracle Database utility and product under BS2000/OSD uses an Oracle Database environment-definition file, which is referred to as ORAENV
. You must generate this file before you use the Oracle Database products as it contains a number of Oracle Database environment variables. These Oracle Database environment variables describe the operating environment for the Oracle Database and utilities. The section "Generating the Environment-Definition File" explains how to create the file.
If you do not generate the ORAENV
file, then the default values are used for all environment variables. In some cases, there are no default values for environment variables, such as for ORASID
. If you start an Oracle Database program or utility without first generating the ORAENV
file, then you will not be able to connect to the Oracle Database.
The ORAENV
file is a text file that has the format of a BS2000 command procedure. The command procedure calls itself using the /SET-FILE-LINK ORAENV
, filename
command. Each line contains an Oracle Database environment variable and its assigned value. When reading this file, Oracle Database ignores all lines that have a slash symbol (/) or asterisk symbol (*) in column one.
You must generate an ORAENV
file prior to using Oracle Database for the first time. Perform the following steps to generate an ORAENV
file:
Call the INSTALL.P.USER
procedure by entering the following command:
/CALL-PROCEDURE $ORAC1120.INSTALL.P.USER
where $ORAC1120
is the name of Oracle Database 11g Release 2 (11.2) installation user ID.
You are prompted for the database system identifier, known as the SID
.
Enter the SID
. If you do not know what the SID
is, then consult the database administrator.
Call the ORAENV
file (sid
.P.ORAENV
) by entering the CALL-PROCEDURE
command on the ORAENV
file. For example, to call the example ORAENV
file for the database DEMO
, enter the following command:
/CALL-PROCEDURE DEMO.P.ORAENV
The following is the content of the ORAENV
file available with Oracle Database:
/SET-PROC-OPT DATA-ESCAPE=*STD /DECL-PAR (SYSCMD(INI-VAL='DEMO.P.ORAENV')) / REMARK * SYSCMD must be name of this file / WRITE-TEXT ' ' / WRITE-TEXT ' +----------------------------------------+ ' / WRITE-TEXT ' I Oracle Database 11g Release 2 (11.2) I ' / WRITE-TEXT ' I environment setup I ' / WRITE-TEXT ' +----------------------------------------+ ' / WRITE-TEXT ' ' / SET-FILE-LINK ORAENV,&SYSCMD / SET-FILE-LINK ORALOAD,$ORAC1120.ORALOAD.LIB / SET-FILE-LINK ORAMESG,$ORAC1120.ORAMESG.LIB /&* MOD-SDF $ORAC1120.SYSSDF.ORACLE.USER /&* *** if SYSOUT protocol is desired set BGJOUT='KEEP' *** /&* SET-VAR BGJOUT='DEL' / EXIT-PROCEDURE ** parameters for users: * ORAUID=/BS2/$ORAC1120 ORASID=DEMO NLS_LANG=German_Germany.D8BS2000 * PRINTPAR= /END-PROCEDURE
If you want, you can change Oracle Database 11g Release 2 (11.2) working environment by editing the user variables in this file. The Appendix B, "Oracle Environment Variables" contains a list of the variables you can specify in the ORAENV
file. The values you assign to user variables are specific to your task only. The database administrator can also set other variables that affect the whole database instance. If you try to set values for the DBA-specific variables in the ORAENV
file, then they are ignored.
Note: You can create an individualORAENV file for each database with which you work. To set the environment variables, call the ORAENV file containing the environment variables for the database you want to use. |
The ORALOAD
library ($ORAC1120.ORALOAD.LIB
by default) is required for starting Oracle Database 11g Release 2 (11.2) programs. Oracle Database uses this library to dynamically load executables when required. The ORALOAD
library must be identified by the link name ORALOAD
prior to calling Oracle Database programs. You get a BLS (BS2000 loader) error message, if the link name is missing. The ORALOAD
link name is set when the ORAENV
procedure is called. Another library, the ORAMESG
library ($ORAC1120.ORAMESG.LIB
by default) is required for Oracle messages. This library is assigned the link name ORAMESG
in the ORAENV
procedure.
Before you start Oracle Database products, you must call the environment-definition file, as described in Section 1.1.2, "Calling the Environment-Definition File".
Start the Oracle Database programs and utilities by entering a START-PROGRAM
command with the program name at the BS2000 command prompt (/). Specify the options and operands as the first data-input line when the data prompt (*) is displayed, as shown in the following example:
/START-PROGRAM $ORAC1120.program_name CCM0001 enter options: * [option_switch] [arguments]
where:
program_name
is the name of the program or utility to be started
option_switch
is one or more of the program-dependent optional switches. If this is used, then the switch is preceded by a dash (-).
arguments
are one or more operands of the program (or utility), or the user ID and password combination, or both.
Example 1-1
To start SQL*Plus, enter the following command:
/START-PROGRAM $ORAC1120.SQLPLUS
* /NOLOG
SQL> CONNECT SYS / AS SYSDBA
Enter password: password
As soon as the program is loaded, the CCM0001
prompt is displayed to let you enter the command line options. As shown in the preceding examples, you can enter the option_switch
or arguments
for the program. The prompt of the program is then displayed, which in the case of SQL*Plus, is SQL>
. You can now enter one of the commands of the program. Refer to the generic documentation for the product for a description of the valid commands.
Alternatively you can start the Oracle Database utilities with the following BS2000 SDF command:
/START-EXECUTABLE
($ORAC1120.ORALOAD.LIB
,program_name
)
For example, if you want to start SQL*Plus, then enter the command:
/START-EXECUTABLE
($ORAC1120.ORALOAD.LIB,SQLPLUS)
You can also start the utilities with the following commands:
/START-ORACLE-CMMIGR or /CMMIGR /START-ORACLE-EXPORT or /OEXP /START-ORACLE-EXPDP or /EXPDP /START-ORACLE-IMPORT or /OIMP /START-ORACLE-IMPDP or /IMPDP /START-ORACLE-LISTENER-CONTROL or /LSNRCTL /START-ORACLE-MKWALLET or /MKWALLET /START-ORACLE-SQLLOADER or /SQLLDR /START-ORACLE-SQLPLUS or /SQLPLUS /START-ORACLE-TNSPING or /TNSPING /START-ORACLE-RMAN or /RMAN
Parameters can be specified after the start command (in quotation marks, if the parameters contains equal to (=) or blanks). Before you start the utility, activate the MOD-SDF
command in the ORAENV
file and call the ORAENV
file.
Example:
/sqlplus /lsnrctl stop /oimp 'system/manager file=iea buffer=210000 ignore=y grants=y rows=y full=y commit=y'
Starting with Oracle Database 11g Release 2 on Fujitsu BS2000/OSD, you can run utilities like SQL*Plus not only in the normal BS2000 environment, but also in the POSIX environment.
During the installation of the Oracle Database software the utilities are installed within the POSIX file system in the directory oracle_home_path
/bin
. Before starting Oracle utilities in the POSIX shell, you must set the environment variable ORACLE_HOME
and extend the environment variable PATH
by the pathname of the Oracle directory oracle_home_path
/bin
. For example:
$ ORACLE_HOME=/u01/app/orac1120/product/dbhome $ export ORACLE_HOME $ PATH=$ORACLE_HOME/bin:$PATH $ export PATH
Alternatively you can execute the profile oracle_home_path
/.profile.oracle
that is created during the installation of the Oracle Database software under POSIX. This profile sets and expands the most important variables like ORACLE_HOME
and PATH
. Execute the profile as follows:
$ . /u01/app/orac1120/product/dbhome/.profile.oracle
Set the variable ORACLE_SID
to start an Oracle utility for a specific Oracle instance. Additional instance-specific parameters that are defined in the related BS2000 ORAENV
file, may be set in the POSIX environment or by accessing the BS2000 ORAENV
file.
Utilities running in the POSIX shell provide the opportunity to read instance-specific variables from the ORAENV
file in the BS2000 file system. To provide access to the BS2000 ORAENV
file, you must create a file named oraenvsid
in the oracle_home_path
/dbs
directory. This file contains the full qualified BS2000 filename of the BS2000 ORAENV
file. It acts like a link to the ORAENV
file in the BS2000 file system.
For example, if you want to access the ORAENV
file $ORADATA.ORCL.P.ORAENV
, then you must create a oraenvORCL
file in the oracle_home_path
/dbs
directory as follows:
$ ORACLE_HOME=/u01/app/orac1120/product/dbhome
$ export ORACLE_HOME
$echo '$ORADATA.ORCL.P.ORAENV' > $ORACLE_HOME/dbs/oraenvORCL
$ chmod 664 $ORACLE_HOME/dbs/oraenvORCL
Note:
|
If an Oracle utility uses the BEQ protocol to connect to a database, then Oracle Net Services will get the job parameters for the start of a dedicated server in the BS2000 environment from the BGJPAR
variable. If this variable is not specified, then Oracle Net Services will use default values.
Note: TheBGJPAR variable is not set after running the oracle_home_path /.profile.oracle profile. |
While using the BEQ protocol, it is recommended that particular BS2000 job parameters are defined for BS2000 jobs started by Oracle Net Services. The BGJPAR
variable provides the option to define these parameters. You can define this variable either in the related BS2000 ORAENV
file or by explicitly setting it in the POSIX environment to the appropriate value.
For example, if a bequeathed server task should be assigned to a special JOB-CLASS
, then set the BGJPAR
variable in the POSIX environment as follows:
$ ORACLE_SID=orcl
$ export ORACLE_SID
$ BGJPAR='START=SOON,CPU-LIMIT=NO,JOB-CLASS=JCBORA,LOGGING=*NO'
$ export BGJPAR
You can start the utilities in the same way as on other UNIX systems, such as for SQL*Plus, using the following commands:
$ sqlplus /nolog
$ SQL> connect / as sysdba
You can connect to an Oracle instance in the following ways:
Using Oracle Net Services with the Bequeath adapter (Refer to the "Oracle Net Services" chapter in Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD)
Using Oracle Net Services over TCP/IP or IPC
Check with the database administrator to see whether you can connect to the Oracle database using the listed methods, as the possibilities available are dependent on how the system has been configured. Usually, you specify the way you connect to an Oracle instance as part of the logon string appended to the userid/password, and separated from it by an at sign (@), as illustrated in the following sections.
If you do not specify a connection string, then the environment variable DEFAULT_CONNECTION
, if set, is used to establish the Oracle database connection. Refer to Appendix B, "Oracle Environment Variables" for more information about the ORAENV
file and the DEFAULT_CONNECTION
environment variable.
Access to a local or remote instance is done through Oracle Net Services. Use the Oracle Net Services logon string to identify the following for accessing a local or remote database:
Protocol to be used
Database you want to access
Type of server (whether dedicated or shared) you want to use
The Oracle Net Services logon string has the following structure:
/START-PROGRAM $ORAC1120.SQLPLUS * userid/password@service_name
where:
service_name
specifies a service name entered in the TNSNAMES.ORA
file that identifies the TNS connect descriptor for the desired database. If you are not sure of what you should enter here, then contact the database administrator.
The following example shows a logon string to connect to a database defined in the TNSNAMES.ORA
file as SERVERX
:
HR/HR@SERVERX
For information about connecting to an Oracle Database using the Bequeath adapter, refer to the "Oracle Net Services" chapter in Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD.
In most cases, Oracle Database for BS2000/OSD programs use the functions of the C-BS2000 run-time system to access their input and output files. Oracle Database programs can read and write SAM
, ISAM
, and PAM
files.
Textual data is usually stored in SAM
or ISAM
files; each record is taken to be one text line. Examples are the SQL script files used by SQL*Plus and spool output files.
SQL*Loader input data is provided as SAM
or ISAM
files. These files may also contain non-printable data, such as packed decimal or binary integer values. For ISAM
files, the key at the beginning of the record is generally ignored.
The convention used in generic Oracle Database documentation represents file names as two parts separated by a period, as in LOGIN.SQL
. This syntax is correct for BS2000. However, as there is no "current directory" concept in BS2000, you have to add a prefix to the generic example names to get a full BS2000 file name.
Under BS2000/OSD, the Oracle Database utilities add default extensions to file names only when the last component of the specified file name is longer than three characters, or when only one component is specified, as shown in the following table.
Original File Name | Extended File Name | |
---|---|---|
1. | TEST.TEST | TEST.TEST.EXT |
2. | TST | TST.EXT |
3. | T.T | T.T |
4. | TEST.TST | TEST.TST |
This is similar to the file naming conventions used with Oracle Database on a UNIX system.
Instead of specifying a file name, in special cases, you can also refer to the link name of a previously issued BS2000 /SET-FILE-LINK
command by using the syntax link=
linkname
in places where a file name is requested. In this way, you can override default file attributes, preallocate file space, and so on. There are a few exceptions where the link=
linkname
notation cannot be used.
Note: When using thelink= linkname notation, default file name extensions do not work. As a result, file name defaults derived from such notation are not valid, and you have to provide explicit names in such cases. For example, when working with SQL*Loader, if you specify link= linkname for the SQL*Loader control file, then you must provide explicit names for the BAD , LOG , and DISCARD file names.
Some programs may report a syntax error when the |
Oracle Database 11g Release 2 (11.2) for BS2000/OSD uses fixed link names for specific files.
The most important of these are as follows:
Type | Meaning/Usage |
---|---|
ORAENV | The link name of the Oracle Database environment-definition file. |
ORALOAD | The link name is mandatory and is used to specify the load library from which the Oracle Database modules are loaded during processing. |
ORAMESG | The link name is mandatory and is used to specify the message library from which Oracle message modules are loaded during execution. |
Typically, you set these link names by running the ORAENV
procedure.
This chapter describes how you start the following Oracle Database utilities:
For a more detailed discussion of these utilities, refer to Oracle Database Utilities.
SQL*Loader is a tool used for moving data from an external file (or files) into the tables of an Oracle database. SQL*Loader can load data in several formats and can even load several tables simultaneously. You can also use it to load only records that match a particular data value. Refer to the Oracle Database Utilities manual for a detailed description of SQL*Loader and its demonstration files.
For restrictions when using SQL*Loader refer to the section, " Known Problems, Restrictions, and Workarounds" in Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD.
To start SQL*Loader, enter the following command:
/START-PROGRAM $ORAC1120.SQLLDR
* SCOTT/password
The demonstration files are shipped under:
$ORAC1120.RDBMS.DEMO.ULCASE*.CTL $ORAC1120.RDBMS.DEMO.ULCASE*.SQL $ORAC1120.RDBMS.DEMO.ULCASE*.DAT
To run the ULCASE1 demo use the following steps:
Run SQL*Plus and set up the table to be used in the demonstration by entering the following commands:
START-PROGRAM $ORAC1120.SQLPLUS
* SCOTT/password
SQL> START $ORAC1120.RDBMS.DEMO.ULCASE1
Note: This example sets up the table for the userSCOTT to run the demonstrations. |
Start SQL*Loader to run the demonstration by entering the following command:
/START-PROGRAM $ORAC1120.SQLLDR
* SCOTT/password $ORAC1120.RDBMS.DEMO.ULCASE1 ULCASE1 ULCASE1
The Export utility is used to write data from an Oracle Database into the BS2000 system files. Use this utility with the Import utility to back up your data, and to move data between Oracle Databases.
For restrictions when using the Export utilities refer to the section, " Known Problems, Restrictions, and Workarounds" in Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD.
To start the Export utility, EXP
, enter the following command:
/START-PROGRAM $ORAC1120.EXP
* SCOTT/password
If you omit the SCOTT/
password
parameters, then you are prompted for them.
Export dump files are usually created by EXP
as SAM
files. You can override default output file specifications by running a file command such as:
/FILE expfile,LINK=explink,FCBTYPE=SAM,RECFORM=F, - BLKSIZE=(STD,1),RECSIZE=2048
Then, call EXP
specifying the following in response to the output file name prompt:
LINK=explink
On a nonkey public volume set you may need to adjust the BLKSIZE
and RECSIZE
values for efficient disk-space usage (note that RECSIZE
must be 16 bytes less than the BLKSIZE
on nonkey disks). Specify the RECSIZE
value to match the export record size.
For example:
/FILE expfile,LINK=explink,FCBTYPE=SAM,RECFORM=F, - BLKSIZE=(STD,1),RECSIZE=2032
Note: Do not use variable record size withSAM files.
When using a block size ( |
When exporting a large volume of data, the default disk-space allocation for the output file will be inappropriate, and the program will spend a significant amount of time allocating secondary extents of disk space. If the maximum number of extents exceeds the number that the catalog entry can hold, then an output-file error will occur.
As a counter-measure, you should always preallocate the EXP
output file with the BS2000 /FILE command, prior to starting the Export utility. When allocating the file, you should use a realistic estimate for both the primary and secondary space allocations.
For example:
/FILE LARGE.EXPORT.DMP,LINK=EXPOUT,SPACE=(3000,3000) /START-PROGRAM $ORAC1120.EXP * system/manager ... Export file: EXPDAT.DMP >link=expout ...
You can export to foreign systems using the following methods:
To export directly to tape, enter a FILE
command as follows:
/FILE tapefile,LINK=tapelink,FCBTYPE=SAM,RECFORM=F, - BLKSIZE=2048,RECSIZE=2048,DEV=<device>,VOL=<vsn>
Then, call EXP
, specifying the following value in response to the output file name prompt:
LINK=tapelink
You also must set the EXP_CLIB_FILE_IO
environment variable to FALSE
in the ORAENV
file.
The export utility writes the output as SAM
files, which simplifies export to an Oracle Database on foreign systems.
If you use FTP, then ensure that you specify binary mode (to avoid automatic EBCDIC-ASCII conversion).
The Import utility is used to write data from the files created by the Export utility to an Oracle Database.
For restrictions when using the Import utility refer to the section, "Known Problems, Restrictions and Workarounds" in Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD.
To start the Import utility, IMP, enter the following command:
/START-PROGRAM $ORAC1120.IMP
* SCOTT/password [options]
If you omit the SCOTT/
password
parameters, then you are prompted for them.
This section gives you some guidelines on importing data from non-BS2000 systems.
If the import file on the BS2000/OSD operating system has a block size (BLKSIZE
) not equal to 2 KB, then you must specify the block size during import with the Import parameter RECORDLENGTH
.
The Import utility can read directly from tape, provided the file can be processed as a SAM
file, which is usually the case even for EXP
files created on foreign systems (for example, as a sequence of fixed 2 KB blocks).
To read a foreign export file directly, enter a FILE
command such as the following:
/FILE tapefile,LINK=tapelink,DEV=T-C1,STATE=FOREIGN
Then, call IMP
, specifying the following as the input file name at the input file name prompt:
LINK=tapelink
You must also set the IMP_CLIB_FILE_IO
environment variable to FALSE
in the ORAENV
file.
If you use FTP, then ensure that you specify binary mode (to avoid automatic ASCII-EBCDIC conversion). The received file will be stored as a PAM
file by the BS2000 FTP utility and can immediately be used as an input file to IMP
.
When you try to use an export file from BS2000 as an import file on an ASCII platform use as transfer utility FTP on BS2000 side and indicate the parameters binary and ftyp binary in order to avoid insertion of NL (new lines) at block boundaries.
Data Pump Export and Import are functionally similar to Export and Import discussed previously, but all of the I/O processing for dump files is done in the Oracle Database server rather than in the client utility session.
The Data Pump Export utility is used to write data from an Oracle Database into the BS2000 system files. Use this utility with the Data Pump Import utility to backup your data, and to move data between Oracle databases.
To start the Data Pump Export utility, EXPDP
, enter the following command:
/START-PROGRAM $ORAC1120.EXPDP * username/password [options]
Data Pump Export dump files are created by EXPDP
as PAM
files with BLKSIZE=(STD,2)
.
When you try to use an export file from BS2000 as an import file on an ASCII platform, use as transfer utility FTP on BS2000 side and indicate the parameter binary
.
Note: If you startEXPDP in UNIX-Style and use interactive-command mode [K2] key, then the parameters must be specified when you are prompted for them and not on the command line.
Data Pump Export to tape is not supported. |
The Data Pump Import utility is used to write data from the files created by the Data Pump Export utility to an Oracle database.
To start the Data Pump Import utility, IMPDP
, enter the following command:
/START-PROGRAM $ORAC1120.IMPDP * username/password [options]
If you use an export file from an ASCII platform as an import file on BS2000, then use as transfer utility FTP on BS2000 side and indicate the parameter binary
.
Before you get the file, issue the FTP command:
file dmp-file
,fcbtype=pam,blksize=(std,2),blkctrl=no
Note: If you startIMPDP in UNIX-Style and use interactive-command mode [K2] key, then the parameters must be specified when you are prompted for them and not on the command line.
Data Pump Import from tape is not supported. |
This utility imports and exports text data. For installation of Oracle Text, refer to the chapter, "Oracle Text" in Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD.
To start Oracle Text Loader enter the following command:
/START-PROGRAM $ORAC1120.CTXLDR *-USER username/password [options]
For more information, refer to Oracle Text Reference.
This manual, with the Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD, forms the system-specific component of a set of manuals which document installation, maintenance, and use of the Oracle Database 11g Release 2 (11.2).
General information about the Oracle Database for all operating systems is contained in the Oracle Database documentation set.
This Preface contains the following topics:
This manual is intended for users of the Oracle Database running under the BS2000/OSD operating system, and for those who provide support to these users. Those responsible for installing the Oracle Database, or administering the Oracle Database, or both, should also refer to the information contained in the Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD.
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
.
Access to Oracle Support
Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info
or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.
The Oracle Database products that run under BS2000/OSD are identical, in the way in which they are supported, to the Oracle Database products that run under any other operating system. However, because of the diversity of operating systems, the use of applications may differ slightly between different operating systems. As a result of this, Oracle provides two types of documentation:
Type | Meaning/Usage |
---|---|
Generic | This is the primary Oracle Database documentation, which describes how the product works and how it is used. Use this type of documentation to learn about product functions and how to use any Oracle Database product or utility. |
System Specific | This documentation provides the information required to use the product under a specific operating system. Use this type of documentation to determine whether there are any system-specific deviations from the generic documentation. |
This manual is written for users of Oracle Database 11g Release 2 (11.2) for BS2000/OSD, providing them with BS2000/OSD-specific information about using Oracle Database products. It does not describe how to use a product unless its use is different than that described in the generic documentation. System programmers and database administrators responsible for installing the Oracle Database, or administering the Oracle Database, or both, should read this manual as well as the Oracle Database Installation and Administration Guide for Fujitsu BS2000/OSD. There are places where the information in these manuals overlap and is presented differently depending on the target audience.
The reader is assumed to have a fundamental knowledge of BS2000/OSD. No attempt is made to document features of BS2000/OSD except as they affect or are affected by the Oracle Database 11g Release 2 (11.2).
For more information, refer to the following resources:
Printed documentation is available for sale in the Oracle Store at
To download free release notes, installation documentation, white papers, or other collateral, visit the Oracle Technology Network (OTN). You must register online before using OTN; registration is free and can be done at
http://www.oracle.com/technetwork/community/join/overview/index.html
If you already have a user name and password for OTN, then you can go directly to the documentation section of the OTN Web site at
http://www.oracle.com/technetwork/indexes/documentation/index.html
The following conventions are observed in this manual.
Typographic Conventions
The following text conventions are used in this manual:
Convention | Meaning |
---|---|
boldface | Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. |
italic | Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. |
monospace | Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter. |
Command Syntax
Item | Syntax |
---|---|
Commands | This font identifies text which must be entered exactly as shown:
set echo off |
Variables | Variables appear in italics. Substitute an appropriate value, for example:
arg1 |
Required Items | Required items are enclosed in braces { }. You must choose one of the alternatives.
DEFINE { macro1 | macro2 } |
Optional Items | Optional items are enclosed in square brackets [].
[options] formname [userid/password] |
Repetitive Items | An ellipsis, ... represents an arbitrary number of similar items.
CHKVAL fieldname value1 value2... valueN |
Punctuation
The following symbols should always be entered as they appear in the command format:
Name | Symbol |
---|---|
ampersand | & |
backslash | \ |
colon | : |
comma | , |
double quotation mark | " |
equal sign | = |
hyphen | - |
number sign | # |
parantheses | () |
period | . |
semicolon | ; |
single quotation mark | ' |