Advertisement

04.05.2005 at 11:28PM PDT, ID: 21378056
[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!

7.6

Create table or external table using Procedure

Asked by senico in Oracle 3rd Party Tools

Tags: , , ,

Hai,

     I want to create table or create external table using procedure. But, i am not able to do it. Here the code :

CREATE PROCEDURE TEST AS

BEGIN      
      CREATE TABLE CLS_TEST
      (
       DATE_EXTRACT CHAR(8),
       APPL_ID CHAR(3),
       ENTITY_NAME CHAR(3),
       BORRO_NAME CHAR(35),
       ROC CHAR(15),
       BORRO_TYPE_CODE CHAR(2),
       BORRO_TYPE_DESC CHAR(30),
       CUST_NUM CHAR(6)
      )
       ORGANIZATION EXTERNAL
        (
         TYPE ORACLE_LOADER
         DEFAULT DIRECTORY Source_dir
         ACCESS PARAMETERS
         (
               RECORDS DELIMITED BY NEWLINE
            BADFILE bad_dir:'CLS_TEST_BADFILE.txt'
            LOGFILE log_dir:'CLS_TEST_LOGFILE.txt'
            FIELDS
            (
             DATE_EXTRACT     POSITION(01:08),
              APPL_ID               POSITION(09:11),
              ENTITY_NAME         POSITION(12:14),
              BORRO_NAME         POSITION(15:49),
              ROC                     POSITION(50:64),
              BORRO_TYPE_CODE  POSITION(65:66),
              BORRO_TYPE_DESC  POSITION(67:96),
              CUST_NUM               POSITION(97:102)))
             LOCATION('CLSCUSTOMER.txt'));
      
       COMMIT;
END;


I try to compile the script using TOAD (Tools For Oracle Developer). But,
I having this error message :

PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:

   begin case declare exit for goto if loop mod null pragma
   raise return select update while with <an identifier>

Can anybody help me to solve this problem.. I hope somebody can help me. ok




 Start Free Trial
[+][-]04.05.2005 at 11:51PM PDT, ID: 13714328

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.

 
[+][-]04.05.2005 at 11:53PM PDT, ID: 13714336

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 3rd Party Tools
Tags: table, create, procedure, external
Sign Up Now!
Solution Provided By: ploubier
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.06.2005 at 01:00AM PDT, ID: 13714588

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]04.06.2005 at 01:06AM PDT, ID: 13714618

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.

 
[+][-]04.06.2005 at 01:22AM PDT, ID: 13714684

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.

 
[+][-]04.06.2005 at 01:28AM PDT, ID: 13714713

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]04.06.2005 at 01:28AM PDT, ID: 13714718

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.

 
[+][-]04.06.2005 at 01:30AM PDT, ID: 13714725

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