We help IT Professionals succeed at work.
Get Started

Run master SQLLDR scripts in UNIX environment

IT_ETL
IT_ETL asked
on
866 Views
Last Modified: 2013-11-17
I got two SQLLDR scripts below. I will combine this two scripts and create a master SQLLDR script (master_script.ctl). The database server is in UNIX. All the source data files are in specified location below (inside scripts) in UNIX server. So, the master script needs to run at the UNIX command prompt and at the end of run data will be loaded into database tables TEST.TABLE_A & TEST.TABLE_B.

Do I need to write a shell script in order to execute this master_script.ctl?  Is there another option. Please provide an example.......

load data
infile '/u02/loaddata/natcity/V_STATUS_LOGIN_NCC.TXT'
replace into table TEST.TABLE_A
(
Login_ID                  position(1:9),
Password                  position(10:17),
Create_Date                  position(18:27)
);

load data
infile '/u02/loaddata/natcity/V_STATUS_HIST_NCC.TXT'
replace into table TEST.TABLE_B
(
Member_ID                        position(1:9),
Member_Status                  position(10:11),
Change_Method_Code                  position(12:15)
);

Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2012
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE