Advertisement

11.01.2007 at 11:27AM PDT, ID: 22933087
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Sql Loader variable using %

Asked by dplinnane in Oracle 10.x

Tags: , , ,

I am loading a dat file with records as follows

I had to replace %s_pmPath% with /u01/app/oracle/product/10.2.0/db_1/demo/schema/product_media/ to get the data to load.


RECORDS
 "P",3060,11001,BC77307125B32B30E034080020E5BAD1,"%s_pmPath%monitor_comp_ad.gif",
+"%s_pmPath%monitor2056_source.txt",


Sqlloader is called form another script that has the follwoeing params

DEFINE pm_pass     = &1
DEFINE pm_dat_path = &2
DEFINE pm_log_path = &3
DEFINE pm_wrk_path = &4

DEFINE ctl_file = &pm_dat_path.pm_p_lob.ctl
DEFINE dat_file = &pm_wrk_path.pm_p_lob.dat
DEFINE log_file = &pm_log_path.pm_p_lob.log

HOST sqlldr pm/&pm_pass -
  control=&ctl_file data=&dat_file log=&log_file

I run the script as follows where I pass in the ctl, data and log path.   I assume this is supposed to be substituted for %s_pmPath% value.
However I have seen code in another script that creates a directory CREATE OR REPLACE DIRECTORY data_file_dir AS '%s_shPath%';  I'm not sure whether this was substituted with a path location or wheter a dir is created in that name.
SQL> @?/demo/schema/product_media/pm_main.sql lime EXAMPLE TEMP lime lime  /u01/app/oracle/product/10.2.0/db_1/demo/schema/product_media/
/u01/app/oracle/product/10.2.0/db_1/demo/schema/log_pm/ /u01/app/oracle/product/10.2.0/db_1/demo/schema/product_media/;


Thanks in advance.
Start Free Trial
[+][-]11.01.2007 at 12:08PM PDT, ID: 20195639

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 10.x
Tags: sqlldr, variable, loader, sql
Sign Up Now!
Solution Provided By: MikeOM_DBA
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.01.2007 at 12:10PM PDT, ID: 20195668

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628