Facing many problems on the creation of directory and an external Table

Question:

The strange thing is that if you look at the question 10-b page 3-41, it says:
(page 3-41 "Oracle Database 10g SQL Fund. II Vol.1")

Merge the data into the EMP_DATA table that is created in the lab last in the data in the table emp_hist. assume
EMP_DATA external table data corresponds to the EMP_HIST of table, update the email column
table EMP_HIST to match the row in the EMP_DATA table. If a row in the EMP_DATA table is not
match, to be inserted in the tables of EMP_HIST lines are considered as corresponding whenever his first and
family name are the same.

For me, this issue is built wrong. First of all in the last lab we have not been asked to create EMP_DATA. Secondly, EMP_DATA is empty.
Thirdly, this question asks us to merge into the table EMP_HIST while EMP_DATA is empty.

Table EMP_HIST currently copied data from the employees table. Structure EMP_HIST:

FIRST NAME VARCHAR2 (20)
LAST_NAME NOT NULL VARCHAR2 (25)
EMAIL NOT NULL VARCHAR2 (45)

Anway, I did the merger as follows:

merge into e emp_hist
with the help of emp_data d
on (e.first_name = d.first_name)
When matched then
game update
Select = d.last_name,
e.email = d.email
When not matched then
Insert values (d.first_name, d.last_name, d.email);

I get this error:

Error report:
SQL error: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
ORA-29400: data cartridge error
KUP-04040: file emp.dat in EMP_DIR not found
ORA-06512: at "SYS." ORACLE_LOADER', line 19
29913 00000 - "error in the execution of %s legend".
* Cause: The execution of the specified legend caused an error.
* Action: Examine the error messages take appropriate measures.

On the other hand, I said I'm going to try this:

merge into emp_data d
using e emp_hist
on (d.first_name = e.first_name)
When matched then
game update
d.last_name = select,
d.email = e.email
When not matched then
Insert values (e.first_name, select, e.email);

I get this error because the external table is final once its creation is as far as I know:

Error report:
SQL error: ORA-30657: operation not supported on external organized table
30657.0000 - "operation not supported on external-organized table".
* Cause: User attempted on the operation on an external table which is
not supported.
* Action: Don't do that!

**********************************

I don't know what to do. I did my best, please help.

Published by: user11164565 on July 27, 2009 02:43

user11164565 wrote:
NOTE: I did my best, I've done everything I can do, but the problem persists. Help, please

I'll mention all the steps that I made it clear...

I gave scott the following grants:

grant create any directory Scott;
grant read on the directory emp_dir to scott;

-----------------------

1. create a directory and its been created successfully:

create or replace directory emp_dir
like 'F:\emp_dir ';

Then I made just to make sure that my directory is recognized the following:

SELECT *.
OF dba_directories;

I found the drive among the results...

OWNER NOM_REPERTOIRE
------------------------------ ------------------------------
DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS EMP_DIR
F:\emp_dir

SYS SUBDIR
D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\/2002/Sep

SYS XMLDIR
D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\

----------------------
2. I created an external table emp_data (the script is given by the text book): successfully done

drop table emp_data;

CREATE TABLE emp_data
(first name VARCHAR2 (20))
, last_name VARCHAR2 (20)
, email VARCHAR2 (30)
)
EXTERNAL ORGANIZATION
(
TYPE oracle_loader
Emp_dir default DIRECTORY
ACCESS SETTINGS
(
RECORDS DELIMITED BY NEWLINE CHARACTERSET US7ASCII
NOBADFILE
NOLOGFILE
FIELDS
(first name POSITION (01:20) TANK)


, last_name POSITION (22:41) TANK
CHAR POSITION (43:72) by email)
)
LOCATION ('emp.dat'));

--------------------------------

3. I went to drive F:\ to see if emp_dir file exist or not! I did not see it. I checked the files hidden, nothing. Anyway, I ignored and did step 4.

"Anyway, I ignored him... "

and so the rest of your problems. I do not see in the steps you told that acually you created a directory ("folder") named "\emp_dir" on your f: drive. Anything that you create the database will actually create this directory on the operating system. Uttering a directory in Oracle, uttering an external table in Oracle, don't create pointers to Oracle objects will assume just actually exists.

Tags: Database

Similar Questions

  • PROBLEM WITH THE CREATION OF DIRECTORY

    I created the directory as below

    CREATE a DIRECTORY taste LIKE '\test\simple ';

    I asked using

    SELECT * FROM dba_directories;

    And, there was an entry too...

    SYSSAMPLE\test\simple

    But I need to change this type unix directory for windows...

    Like for example T:\test\simple

    How can I do?

    CREATE the DIRECTORY Is logically in your database. You create directory logically and physically affecting this directory path as ' ' clause.

    Create directory example as 'c:\test ';

    Means: Logically create object in the database with name sample what type is the Directory and located in "c:\test" physically way

    I have it?

    ----

    Ramin Hashimzade

  • Problem with the creation of New and subfolders only appear is not in the list

    Thunderbird is allowing the creation of some New & subfolders, but they aren't always in the list each time.

    Photo shows the current list, but they tried to get money records IMarEST & Bank. (My apologies for Hypersnap stamps)
    Sorry, but the photo is not download!

    I use the Windows x 86 Version 8.1 - Thunderbird 31.6.0

    How to subscribe to see the imap folders:

    • Right click on your email account name, and then select 'subscribe '.
    • IMAP folders available on the server will be listed.
    • Select the ones you want to add to your e-mail client
    • Click the button to subscribe.
    • Press the OK button
  • I am facing a problem with the beep.vi. I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound.

    I am facing a problem with the beep.vi.  I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound. Everything works fine except the sound alarm. It gives the table 1 d of type mismatch. I tried to fix this by placing it in a box structure. But it still does not work. If someone could help? Please find attached my VI. Best wishes to all visitors to the Forums of Discussion OR.

    Ihab El-Sayed

    published here: http://forums.ni.com/t5/LabVIEW/Playing-sound-based-on-exceeding-a-threshold-value-1D-array-data/m-p...

  • When you save the playlist, error - "Windows Media Player has encountered a problem during the creation or recording of the reading list.".

    When I try to save a playlist, I get an error message "Windows Media Player has encountered a problem during the creation or recording of the reading list.".

    Hello

    • Will there be any changes made prior to this issue?
    • What version of Windows are you using?

    Step 1: I recommend to run the Windows Media Player settings Troubleshooter and check.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Step 2: If the problem is to uninstall and reinstall Windows Media Player. Here's how.

    Uninstalling and reinstalling Windows Media Player:

    (A) uninstall Windows Media Player:

    a. go to start and in the search type 'Turn Windows has or not'.

    b. click on "Turn Windows features on or off".

    c. find multimedia and uncheck the brand in the face of Windows Media Player.

    d. restart the computer

    (B) reinstall Windows Media Player:

    a. go to start and in the search type 'Turn Windows has or not'.

    b. click on "Turn Windows features on or off".

    c. find the multimedia functions and place a check mark in front of the Windows Media Player.

    d. restart the computer.

    For more information, see the article below:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

  • I am facing a problem with the POWER of ODIN 9.1.0.5, my broker is Indiainfoline, my OS is Vista ultimate, when I login, everytime I get an error 'System Error (10055) (setsockopt)'.

    I am facing a problem with the POWER of ODIN 9.1.0.5, my broker is Indiainfoline, my OS is Vista ultimate, when I login, everytime I get an error 'System Error (10055) (setsockopt)'.

    Check out these links:

    System (10055) error (setsockopt) Solution
    http://www.win7heads.com/software/82898-system-error-10055-setsockopt-solution.html

    ODIN request does not work Windows 7
    http://social.technet.Microsoft.com/forums/en/w7itproappcompat/thread/ddbe30c8-f4c6-4B8F-ac91-85aa07191ea3

  • Problems with the creation of chips of debugging SDK WebWorks of Blackberry10 2.0.0.71

    I had a problem with the creation of debugging tokens using the blackberry-debugtokenrequest command. It gives me an error saying that "java" is not a batch file or a program. The blackberry-debugtokenrequest batch file has the following text:

    @java - Djava.awt.headless = true-Xmx512M - cp ' % ~dp0\... \lib\EccpressoJDK15ECC.jar;%~dp0\... \lib\EccpressoAll.jar;%~dp0\... \lib\TrustpointAll.jar;%~dp0\... \lib\TrustpointJDK15.jar;%~dp0\... \lib\TrustpointProviders.jar;%~dp0\... \lib\BarPackager.jar;%~dp0\... \lib\BarSigner.jar;%~dp0\... \lib\KeyTool.jar;%~dp0\... \lib\DebugTokenRequest.jar ' net.rim.device.codesigning.debugtoken.DebugTokenRequest % *.

    I think that the culprit is the symbol @ before java, does anyone else have this problem? Is there a solution?

    What happens if at the command prompt just type "java-version" of your command prompt?

    If it does not, you must do one of two things.

    1. install Java v1.6 (32-bit only)

    2 Java is not in your PATH. (http://www.java.com/en/download/help/path.xml)

  • Too many problems with the latest version of Lightroom

    Hi all

    I have too many problems with the latest version of Lightroom (CC 2015.2.1 1046594)

    In fact, the latest version of 3 or 4 were bad: instead of doing better, I always had more problems.

    So I would like to go back to a previous version of lightroom

    Adobe customar care, in Italy, is unnecessary:

    they can just to:

    -looking for answer on this forum

    -saying "you solve your problems just with the de-insall and re-install it.

    stop, no more...

    in this way they create me a lot fo iusses...

    I use the English version of the PS and LR, but they made me reinstall the Italian version of CC because it has been blocked

    the result was that CC does not recognize software, due to a different language version

    so, I contacted again Adobe Customer Care... they said "no problem, uninstall LR, delete these files and install this...

    I did and I let go 2 years to develop the parameters on the correction of the colors for my clients because they told me to remove a folder, I need!

    so, I ask you now if there is a way to return to a previous version of lightroom, any previous version...

    I never found better performance in more recent versions...

    I've always found, performance slower, more problems...

    personal idea: I do not understand why adobe are boicotting itself, but I think he do!

    Thanks to you all

    Hi ramontillo,

    6.3/CC 2015.3 Lightroom is now available - try to update to this version which includes the previous import feature, bug fixes and new support for photo/target device profile: Lightroom CC 2015.3 / 6.3 now available

    Concerning

    Pete

  • I had many problems with the first cc 2014 so I reinstalled it and now it says that I can not open my project because it was recorded on a newer version. Is there something I can do?

    I had many problems with the first cc 2014 so I reinstalled it and now it says that I can not open my project because it was recorded on a newer version. Is there something I can do?

    Hi Gemma,

    It seems that after reinstalling, Premiere Pro no has not been updated to the latest version. Check your application creative cloud for updates. If she says Premiere Pro is up to date, try to update Premiere Pro through help > updates... option in Premiere Pro.

    Thank you

    Regalo

  • Are there problems in the creation of a virtual machine in VMware Workstation or Server and then move it to ESXi?

    Hello

    I intend to pass our mailserver's current installation of Windows Server 2003 running on native hardware in a Windows Server 2008 running in a virtual machine on ESXi.

    This is the same machine as we will reuse so I would prefer to be able to create the virtual machine on a different computer and test it before wiping Windows and install ESXi. Are there problems with the creation of the virtual machine in VMware Server and then migrate to ESXi using VMware Converter? I won't if the result is not a 'perfect' virtual machine that performs as well as if it had been created on ESXi from the beginning.

    All our other VMs were created on ESXi from the beginning.

    Kind regards

    René Frej Nielsen

    If you are not sure, you can load VMware Server 2 and then install ESXi in it and test your configuration.  Do all this from your desktop (as it is decent).  You can also do in my computer.  A quick google search should give you all the information you need to get something like this configuration.

  • Hi, I had a problem in the creation of several rounded cornered rectangles not "distorted"?

    Hi, I had a problem in the creation of several rounded cornered rectangles not "distorted"?  I have attached a picture to show what I mean (problem highlighted in blue). Any help would be really appreciated...

    ROUNDED CORNER RECTANGLES.jpg

    Thanza,

    If you wish to have proportionately more sizes with the same radius of rounding, you can:

    1) begins with a rectangle (not rounded) and effect > Distort & Transform > transform with the setting to the desired scale and the number of copies;

    (2) object > expand appearance.

    (3) effect > esthetics > rounded corners with a desired RADIUS.

  • Problem with the creation of catalog upgrade to LR3

    Hello world

    Upgrade to LR3 tonight and I'm having a problem with the creation of the catalogue. I had 2 choices during the implementation and what I chose created a LR2-2 cat. I thought he was going to update my LR2 cat in a new Cat LR3 (as when I went to v1 to v2), but it didn't happen. I uninstalled and tried again, but is never given this choice to Setup again.

    So, how can I roll my current cat of LR2 in a new LR3 and use that to proceed? I have to do an export and merge?

    Thank you!

    This catalogue of LR2 - 2 is a copy of your old catalog, updated to the LR3 format. In other words, it's what you want.

    CTRL + O to open the catalogue and go ahead to use it.

  • I have a problem with the Narrator, repeating words and phrases.

    original title: NARRATOR in WIN7 SUPPORT

    I use windows7.  The annoying Narrator sometimes voices repeat words and phrases.  I also need help, change of voice and using Narrator to read aloud my text book I downloaded.  It is in PDF format.

    Original title: Narrator sometimes repeat words and phrases

    Hello

    Thanks for posting your query in the Microsoft Community.

    You have a problem with the Narrator, repeat words and phrases. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.

    Please answer these questions-

    (1) exactly where you run the Narrator?

    (2) the Narrator extends from a particular document?

    (3) have you made changes on the computer before the show?

    I would like more information about the issue.

    Method-

    I wish that return you the items for assistance-

    Narrator doesn't read what I expect him

    http://Windows.Microsoft.com/en-us/Windows7/Narrator-doesn

    Hear text read aloud with Narrator

    http://Windows.Microsoft.com/en-us/Windows7/hear-text-read-aloud-with-Narrator

    Let us know if you need assistance regarding the issue. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

    Thank you.

  • Problems with the creation of the user in Oracle 10 g

    the ear

    After connecting to the database with the sysdba user, I created a user to the following query:

    CREATE THE USER BI_USER
    IDENTIFIED BY THE VALUES OF "0CE8A6E883EE4E19".
    DEFAULT TABLESPACE BI_USER
    TEMP1 TEMPORARY TABLESPACE
    DEFAULT PROFILE
    RELEASE OF ACCOUNT;

    After the creation of what I gave more privledges to him:
    RESOURCE GRANT AT BI_USER;
    GRANT CONNECT TO BI_USER;
    GRANT SCHEDULER_ADMIN TO BI_USER;
    GRANT S/N BI_USER;
    GRANT SELECT_CATALOG_ROLE TO BI_USER;
    IN BI_USER GRANT GLOBAL QUERY REWRITE;
    ANALYZE GRANT AT BI_USER;
    GRANT EXECUTE ANY PROCEDURE TO BI_USER;
    GRANT CREATE SEQUENCE TO BI_USER;
    GRANT CREATE SYNONYM OF BI_USER;
    GRANT EXECUTE ANY PROGRAM AT BI_USER;
    GRANT SELECT ANY DICTIONARY OF BI_USER;
    GRANT DROP ANY VIEW of BI_USER;
    GRANT CREATION DIMENSION TO BI_USER;
    GRANT TO FILE ANY TYPE OF BI_USER;
    GRANT CREATE ANY DIRECTORY OF BI_USER;
    GRANT THE ALTER ALL MATERIALIZED VIEW TO BI_USER;
    GRANT TO CREATE A VIEW ON BI_USER;
    GRANT UNLIMITED TABLESPACE TO BI_USER;
    BEGIN
    SYS. DBMS_RULE_ADM. () GRANT_SYSTEM_PRIVILEGE
    PRIVILEGE = > SYS. DBMS_RULE_ADM. EXECUTE_ANY_RULE,
    DEALER = > "BI_USER"
    GRANT_OPTION = > FALSE);
    END;
    /
    GRANT EXECUTE ANY TYPE OF BI_USER;
    GRANT TO CREATE A VIEW ON BI_USER;
    GRANT CREATE TRIGGER TO BI_USER;
    GRANT CREATE ANY TABLE TO BI_USER;
    GRANT CREATE TABLE BI_USER;
    BEGIN
    SYS. DBMS_RULE_ADM. () GRANT_SYSTEM_PRIVILEGE
    PRIVILEGE = > SYS. DBMS_RULE_ADM. EXECUTE_ANY_RULE_SET,
    DEALER = > "BI_USER"
    GRANT_OPTION = > FALSE);
    END;
    /
    GRANT CREATE TYPE BI_USER;
    GRANT DROP ANY INDEX BI_USER;
    GRANT SELECT ANY TABLE OF BI_USER;
    GRANT CREATE JOB TO BI_USER;
    REWRITING QUERY GRANT IN BI_USER;
    GRANT CREATE VIEW TO BI_USER;
    GRANT CREATE SESSION BI_USER;
    GRANT RUN ANY CLASS TO BI_USER;
    BEGIN
    SYS. DBMS_RULE_ADM. () GRANT_SYSTEM_PRIVILEGE
    PRIVILEGE = > SYS. DBMS_RULE_ADM. EXECUTE_ANY_EVALUATION_CONTEXT,
    DEALER = > "BI_USER"
    GRANT_OPTION = > FALSE);
    END;
    /
    GRANT CREATE INDEXTYPE TO BI_USER;
    GRANT CREATE DATABASE TO BI_USER LINK;
    GRANT ALTER SESSION TO BI_USER.
    GRANT DROP ANY DIRECTORY OF BI_USER;
    GRANT CREATE PROCEDURE BI_USER;
    GRANT DELETE ANY SYNONYM OF BI_USER;
    GRANT DROP ANY TABLE OF BI_USER;

    Follow now the questions that I am facing is:
    (1) after all this when I could connect this user through Toad, she is successful, but through SQL, it says invalid username and password
    (2) whenever I create a table, it is created in the SYS schema not in the schema of the user created in the schema user, I have right username.tablename also in the statement select.

    Any body can help me in this.

    A TOAD, there is a drop down list of 'CONNECT AS' with 'NORMAL', 'SYSOPER' and 'SYSDBA' values

    If you select SYSDBA, connect you effectively as SYS and you create all the objects are created in the SYS schema.

    SQLPlus default connection normally (except if you explicitly add "AS SYSDBA" to your connection).

  • Many problems with the Camileo X 100

    I have a Camileo X 100 (nice and fantastic image quality) and the files are not edit from any conversion or editing software, I tried several times with all software codec
    My PC configuration is:

    Win VISTA Home Premium SP2 32 bits, ACER 9420 17 ", Intel Core 2 CPU T5500, 1.66 GHz, RAM 2 GB, 160 GB HARD drive, NVIDIA G... eForce Go 7300, K-Lite Codec Pack 5.8.3, etc..).
    0 is sufficient or not, for family movies to watch on DIVX player (on Plasma 42 '' HD Ready TV)?

    Issues related to the:
    1. How can I manage these files?
    2. I to convert before (but without the quality loss)?
    3 Please someone explain 'step by step' what I need to do (and with what software) to make simple movies (divx), without quality loss?
    4. when I connect my X 100 to the TV and I watch a movie, always remain above a boring bunch of icon that it does not disappear. Is only my X 100 or other people has the same problem?
    5. I have a lot of problem also with remote control, it's very crazy (bad firmware, zoom not working,...)?
    6 is it better me to return the camera, or these problems have all and that they can be resolved?
    7. is there someone who does not have problems with x 100? How is possible?
    8. when Toshiba updates the firmware?

    There are too many insects (ALL IS SLOW AND UNSTABLE).
    Only ARCSoft (software bundle) works, but it is not good (cheap).
    Please answer me all 9 questions.
    Sorry for my English (I prefer Italian).

    Thanks for the help.
    Antony

    0 configuration is fine, although I would not use Vista, but it's personal preference.
    1. the files can be managed without conversion with any video editing program, for example, Sony Vegas, Nero Vision, etc.
    2 - 3.Conversion is necessary to be able to view the DIVX player, as AVCHD is not supported usually. Unless you have a Blu - ray player. If you have one, you can prepare a BR disc on computer time, if you have a BR player that can burn discs BR. In this case the conversion will be done, but quality will remain. You can not divx without loss of quality. It is impossible.
    4. annoying iis band always on the screen, you cannot delete it.
    5. the remote control works well, with the only problem I've found, described in I opened. Zoom does not work? You mean during playback? It only works when you save.
    6. it of your decision if you return the camera or not. I think that for this price it is very good. Get you one, where there is no such problems for the triple price.
    7.i have a single problem (remote) with it, but at the moment I can live with, that I made my compromise.
    8 Toshiba support is terrible. I can not even a phone number or e-mail address in Hungary for Toshiba to support. The Web page for support is source of confusing and if you search for TV, you're not among the many companies, that takes the car from these products. Ridiculous. I don't know if they will update the firmware, I'm curious too.

    Good luck.

Maybe you are looking for

  • E4X57PA #ACJ: graphics software

    Readon AMD graphics driver does not find to my Windows laptop, 10

  • 08 x 0190190

    Cannot install windows live essentials, my os is windows 7 64 tried all that Dawn gave Gary, without success. Thank you Donald remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have p

  • Cannot install updates for windows xp * error 0 X 80070424

    I can't start my microsoft firewall nor my update, I checked to make sure my updates are fixed to the car and they are, please help. Thank you AND

  • Impossible to update to lollipop

    Hello When I run the update of the lollipop, the phone turn off and the image of special update android arrives. But just a minute later, the screen goes black and the Phone start up normally and stay on the kit kat. A message appears after a minute

  • WRT110 will connect everything except wireless laptop XP

    I have a WRT110 Rangeplus Wireless Router.  It connects 3 desktops (XP and VISTA) and a printer via 4 plugged the ethernet cables.  It connects (VISTA) Compaq laptop, a computer eMachines laptop (Vista), a Wii and 2 Tivos with wireless.  This is the