The following steps will describe the process to register a SQL*Loader program as a Concurrent Program in Oracle Apps.
12, Research, "Saratoga"
10, "Accounting", Cleveland
11, "Art", Salem
Step 1]
Create the SQL*Loader Control and Data file and place them in Server(ex: $CUSTOM_TOP/bin). Create or check the interface table structures in the backend.
LOAD DATA
INFILE 'test.dat'
APPEND INTO TABLE TESTDEPT
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
(deptno,dname,loc)
Control file: test.ctl
10, "Accounting", Cleveland
11, "Art", Salem
Data file: test.dat
1 | CREATE TABLE testdept | |
2 | (deptno NUMBER(2) NOT NULL, |
3 | dname VARCHAR2(14), | |
4 | loc VARCHAR2(13)); |
Step 2]
Go to Application Developer > Concurrent > Executables. Define a Concurrent Program Executable. Choose the Execution Method as SQL*Loader and give the Execution File Name as the name of the SQL*Loader control file. Save your work.
Step 3]
Go to Application Developer > Concurrent > Program. Define the Concurrent Program. Attach the executable defined above.
Step 4]
Go to parameters of the concurrent program. Create a parameter to take the server path of the data file. You can also place the default value.
Step 5]
Attach the Concurrent program to a Responsibility through a Request Group.
Step 6]
Go to that Responsibility and Run the Concurrent Program. If successful check the output file that have all data uploading information.
No comments:
Post a Comment