Please help me about running a sql file

Hi, I downloaded a sql file from

http://www.cs.UWF.edu/~sbagui/DB/practical_oracle.htm

But I am unable to execute successfully... Please help me with this... thank you

SowmyRaj wrote:

But how do I access the tables?

Where these tables are stored?

I have already said - market in the script. Try to understand. Tables are created in the REARP schema:

run immediately "alter session set current_schema = rearp';"

Then connect as a matter, for example:

Select rearp.student;

SY.

Tags: Database

Similar Questions

  • can you please help I am running windows vista Home premium and letters on the keyboard are in french is my question mark key e, what is the problem and how to fix it thanks Dan

    can you please help I am running windows vista Home premium and letters on the keyboard are in french is my question mark key e, what is the problem and how to fix it thanks Dan

    Your keyboard is set to french. To resolve this problem, look at the right hand of the bar at the bottom and you will see a keyboard. Click on it and press U.S..
    I hope this helps.

  • How to run the .sql file

    Hello
    I want to execute .sql files in sql, as well as a fixed location, it may be the network location or to the system drive. so that I can use it on other computers when I'll work on another pc.

    so please tell me for the localization of network and disk solution. by default it look in the BIN directory

    I use oracle 10g.
    Thank you

    Apart from William Robertson's response:
    I'll make sure that I put it for everyone on a network share and map their in their connection to this directory, so it can be accessed as g: or letter that everything that you want. That would keep things manageable.

    For the question of privilege, please set up a separate thread.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Please help!-j' deleted the master file

    Ok. for the first time, I accidentally deleted a session from the folder of the original file. It is not anywhere, no trash, I searched all of the computer, etc..

    Is it possible to restore via lightroom? I still have the files in lightroom, but of course, they say that the file name 'IMG_0558' is offline or missing.

    Help, please. I can't call this client with this huge mistake.

    Sorry to hear about your problems.  We all make errors.  Try the rescue of programs first on your cards and then if no luck on your hard drive.  Try not to use your computer or your memory cards until you have run the software on them.  You didn't say if you Mac or PC.  There should be a couple of free programs and a couple you have to buy.  They are not expensive and they generally have a trial that you can run free that shows you what he can salvage, but does not save the files up to what to buy the 'key '.  It may take some time for them to run on a large hard drive (several hours) so that's why I suggested from memory cards.

    Best wishes

    John

    John G. Blair Studio

    Occidental, California

  • Run the .sql file error

    Hello
    Every time when I run the below plsql, it's keep lance the error as show below output, this product even when I manually create the trigger before you run the file .sql of all the below statements, can you please correct me what I'm doing wrong here. Thank you.
    DROP TABLE FCSDWH.REF_DATA_MASTER;
    
    CREATE TABLE FCSDWH.REF_DATA_MASTER
    (
    REF_DATA_MASTER_ID                      NUMBER PRIMARY KEY,
    DESCRIPTION                                     VARCHAR2(255 CHAR),
    CREATE_ID                                       VARCHAR2(10 CHAR),
    CREATE_DT                                       DATE,
    LST_UPD_ID                                      VARCHAR2(10 CHAR),
    LST_UPD_DT                                      DATE,
    ACT_STRT_DT                                     DATE,
    ACT_END_DT                                      DATE
    )
    TABLESPACE FCSDWH
    STORAGE(INITIAL 50K);
    
    DROP SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ;
    
    CREATE SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ START WITH 1 INCREMENT BY 1;
    
    DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG";
    
    CREATE OR REPLACE TRIGGER FCSDWH.REF_DATA_MASTER_TRG
    BEFORE INSERT ON FCSDWH.REF_DATA_MASTER
    FOR EACH ROW
    BEGIN
    SELECT FCSDWH.REF_DATA_MASTER_SEQ.NEXTVAL INTO :NEW.REF_DATA_MASTER_ID FROM DUAL;
    END;
    /
    Output:
    SQL> @/home/smadala/REF_DATA_MASTER.SQL
    
    Table dropped.
    
    
    Table created.
    
    
    Sequence dropped.
    
    
    Sequence created.
    
    DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG"
    *
    ERROR at line 1:
    ORA-04080: trigger 'FCSDWH.REF_DATA_MASTER_TRG' does not exist
    
    
    
    Trigger created.
    
    SQL>

    Relaxation is "attached" to the table when you delete the table the trigger is going as well.

    John

  • Please, help me to run the import in Windows Scheduler.

    Hi, I am planning my import on windows machine.

    But it is simply not the case. I need to make some changes in my file beats. I tried to give "" before and after the race, still notthings.

    Can someone help me please.

    Set ORACLE_SID = AUTOTIME
    Impdp system/autotime dumpfile is D:\oracle\ora10\RDBMS\log\EXPDAT. DMP log=D:\oracle\ora10\RDBMS\log\imp13032011.log fromuser = autotime touser = statistics = none autotime ignores TABLE_EXISTS_ACTION = y = JUMP

    784786 wrote:
    Since the sql command prompt. Only this time, I changed the directory of the dump files.

    It comes to my .bat file.

    Set ORACLE_SID = AUTOTIME
    Directory system/autotime Impdp = DMPDIR dumpfile = autotime_full_12032011.dmp logfile = autotime_imp_12032011.log FULL = Y TABLE_EXISTS_ACTION = JUMP

    This is how I performed.

    SQL > CREATE or REPLACE DIRECTORY test_dir as 'G:\oracle\dpdir\ ';

    Created directory.

    SQL > GRANT READ, WRITE on DIRECTORY test_dir to THE SYSTEM;

    Grant succeeded.

    Why are you creating the directory TEST_DIR, but citing impdp with directory = DMPDIR... Back to the documentation (you did read the documentation, right?) and read again on the DIRECTORY parameter.

  • Please help to translate ms access sql for oracle

    Hello

    I work by the migration of sql processes for updating legacy 11g access ms stuff we already use for a lot of other business processes.

    I need advice with the code below if someone could help please.

    SELECT (ABC. NAME = ABC. + (ABC. FAMILY NAME) INITS = ABC. INITIALS or IsNull (ABC. INITS) or IsNull (ABC. +(ABC.) INITIALS)) BDAY = ABC. BIRTHDAY or IsNull (ABC. BDAY)) AS [success]

    The results in the column are successes; 0 = no match fields, matches, 2 = 2 fields match, 3 = 3 fields are the field of 1 = 1.

    It works 3 concatenations and function success fills a column with a numeric value that reflects the success.

    in General, it seems to be almost a Where statement but clause to choose and it operates fortunately access.

    There are a lot more code, but ironically it is fairly standard, once the brackets [] around the table with spaces names are deleted and search and replacement of the legacy! between the table and column names.

    Your suggestions are greatly appreciated.

    Cheers, Peter

    so you'd:

    SELECT DECODE (ABC. NAME, ABC. SURNAME, 1, 0)

    + DECODE (NVL (ABC. INITS, ABC. (INITIALS), NVL (ABC. INITIALS, ABC. INITS), 1, 0)

    + DECODE (NVL (ABC. BROWN, ABC. (BIRTHDAY), ABC. BIRTHDAY, 1, 0) as a result

    Of...

    Returns + 1 for all matches (so 0 to do nothing, 1 for 1, 2, 2,...)

    the matches are: the same name (both null is considered to be identical too)

    Inits and identical initials (null or one of them null is considered identical too)

    bday and identical birthday (both null or null bday is considered identical too)

    HTH

  • Please help me to analyze this SQL statement?

    Hello

    I met some very complex SQL and tried to analyze it.
    Although I know on the left, right, inner join, I feel always difficult to understand the statement.

    I shorten the statement as an example below.
    select 
           t1.va t1va, t1.vb t1vb, 
           t2.va t2va, t2.vb t2vb, 
           t3.va t3va, t3.vb t3vb,
           t4.va t4va, t4.vb t4vb
    from 
           t1,
           t2,
           t3,
           t4
    where
          t1.va=t2.va (+)
      and 'test' = t2.vb (+)
      and t1.va=t3.va (+)
      and 'value'= t4.vb (+)
    Could you give some explanations on this statement? For example, the meaning of 'value' = t4.vb (+), etc.

    Thanks in advance.

    BR
    Martin

    Hello

    The + sign is used to find the deficient column in the table.

    Please go through the following example.

    SQL> create table t as
      2  (select 'a' data from dual
      3  union
      4  select 'b' data from dual
      5  union
      6  select 'c' data from dual);
    
    Table created.
    
    SQL> create table t1 as
      2  (select 'a' data from dual
      3  union
      4  select 'b' data from dual
      5  union
      6  select 'c' data from dual
      7  union
      8  select 'd' data from dual);
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select t.data, t1.data
      2  from t, t1
      3* where t.data=t1.data
    SQL> /
    
    D D
    - -
    a a
    b b
    c c
    
    SQL>  select t.data, t1.data
      2   from t, t1
      3   where t.data=t1.data(+);
    
    D D
    - -
    a a
    b b
    c c
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select t.data, t1.data
      2   from t, t1
      3*  where t.data(+)=t1.data
    SQL> /
    
    D D
    - -
    a a
    b b
    c c
      d
    
    as per your question on 
    
    'test' = t2.vb (+)
    
    'test'=t2.vb
    
    If test is not present in any of the table then
    
    like f is not present in both the tables below...
    
    SQL> select t.data, t1.data
      2   from t, t1
      3   where t.data(+)=t1.data
      4   and
      5   'f'=t1.data(+);
    
    no rows selected
    
    SQL>  select t.data, t1.data
      2   from t, t1
      3   where t.data(+)=t1.data
      4   and
      5   'f'=t.data(+);
    
    D D
    - -
      d
      b
      c
      a
    
    If test is present in either of the table
    like value d is present
    
    SQL>  select t.data, t1.data
      2   from t, t1
      3   where t.data(+)=t1.data
      4   and
      5   'd'=t1.data(+);
    
    D D
    - -
      d
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select t.data, t1.data
      2   from t, t1
      3   where t.data(+)=t1.data
      4   and
      5*  'd'=t.data(+)
    SQL> /
    
    D D
    - -
      d
      b
      c
      a
    
    but if I remove + sign
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select t.data, t1.data
      2   from t, t1
      3   where t.data(+)=t1.data
      4   and
      5*  'd'=t.data
    SQL> /
    
    no rows selected
    
    SQL> select t.data, t1.data
      2  from t, t1
      3  where t.data(+)=t1.data
      4  and
      5  'd'=t1.data;
    
    D D
    - -
      d
    

    Hope I raise some of your doubt erased :)

    Twinkle

  • Please please help - I can't open swf files

    I downloaded Adobe Flash Player and Adobe Shockwave Player to play some swf files that I downloaded.  These files still say that Windows cannot open them well and I don't know why.  I tried to uninstall reinstall etc, but the computer doesn't seem to know that the Flash Player is.

    Thanks to all those who will help me solve this problem!

    Hello

    are you clicking on the swf or html file?

    If you want to run the SWF on its own then you will need the Flash Player standalone (you can get it here: http://kb2.adobe.com/cps/142/tn_14266.html).

    If you want to run in the browser, and then drag the swf file (or use the file/open command) in a browser window.

  • Please help me! PSD 124 MB file turned into black image

    Anyone else had problems with Photoshop CC? Final.jpg DoomagekevinlynchNed01scferdadoonavitchnecv100miketzezBarbaraKBRmeffnedflanders !

    Time to start over and do a better job.

  • Please help me to retrieve this xml file

    " < responseResponse xmlns =" http://chatter "xmlns:soapenv =" " http://schemas.xmlsoap.org/SOAP/envelope/ "container =" " http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">
    < responseReturn > I want that! < / responseReturn >
    < / responseResponse >

    I have this XML, it is a result of webservice with e4x format. I want this element to < responseReturn >.

    Try this:

    var xmlResponse:XML =
       "http://chatter" xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/" container ="http://www.w3.org/2001/XMLSchema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ".
          I want that!
      

                   
    var: = xmlResponse.children () text string [0] m:System.NET.SocketAddress.ToString ();

    The following documentation can be useful as well:

    http://www.flexafterdark.com/docs/ActionScript-XML

    Ben Edwards

  • Run the jsxbin file in illustrator cs6

    Hello

    Can someone please help to to run the jsxbin file in illustrator cs6

    I tried putting my jsxbin file in program leader/adobe/Adobe Illustrator CS6 / Presets / Scripts and restart illustrator I have my find my script placed in the script file

    I tried in another way by dragging it to illustratorcs6 I see encrypted only the text

    Thank you

    APPU

    Replace the file with *.jsx extension

  • I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me

    I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me

    Hello

    SQL Server is not supported in these forums. I suggest that you ask your question again in one of the forums dedicated to Microsoft for him here:

    http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .

    Thank you.   :)

  • Please help to download a CSV file on APEX by browsing file

    Hi all

    I need to download a csv file in the table through browse file button. To do this, I created the process and function below. This method works perfectly fine when the file size is small. But I need to download the file size of 16 MB and when I try to download this file it give error wwv_flow.accept. Any expert from the TOP please help me about this error. As I am very new to the APEX, and I need to achieve this as soon as possible. Please provide any solution, I will be really grateful to the person.


    _ Function

    create or replace function hex_to_decimal
    -This function is based on one by Connor McDonald
    -http://www.jlcomp.demon.co.uk/faq/base_convert.html
    (P_hex_str in varchar2) return number
    is
    number of v_dec;
    v_hex varchar2 (16): = '0123456789ABCDEF ';
    Start
    v_dec: = 0;
    for indx in 1... Length (p_hex_str)
    loop
    v_dec: = v_dec * 16 + instr (v_hex, upper (substr(p_hex_str,indx,1)))-1;
    end loop;
    Return v_dec;
    end hex_to_decimal;


    _ Process

    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    V_POSITION NUMBER;
    v_clob_data CLOB: = 'nothing. '
    dest_offset NUMBER: = 1;
    offset NUMBER: = 1;
    blob_csid NUMBER: = dbms_lob.default_csid;
    lang_ctx INTEGER: = dbms_lob.default_lang_ctx;
    caveat INTEGER;



    v_raw_chunk RAW (10000);
    v_char char (1);
    number of c_chunk_len: = 1;
    v_line VARCHAR2 (32767): = NULL;
    v_data_array wwv_flow_global.vc_arr2;
    number of v_rows;
    number of v_sr_no: = 1;

    BEGIN

    delete from scg_recievables2;

    -Read data from wwv_flow_files </span >
    Select blob_content from v_blob_data
    of wwv_flow_files
    where last_updated = (select max (last_updated) in the wwv_flow_files where UPDATED_BY =: APP_USER)
    and id = (select max (id) in the wwv_flow_files where updated_by =: APP_USER);


    v_blob_len: = dbms_lob.getlength (v_blob_data);
    V_POSITION: = 1;

    -Read and convert the binary for char </span >
    WHILE (v_position < = v_blob_len) LOOP
    DBMS_LOB.converttoclob (v_clob_data, v_blob_data, v_blob_len, dest_offset, offset, blob_csid, lang_ctx, warning);
    v_char: = dbms_lob.getlength (v_clob_data);

    v_line: = v_line | v_char;
    V_POSITION: = v_position + c_chunk_len;
    -When a whole line is retrieved < / span >
    IF v_char = Chr (10) THEN
    -Convert comma to: to use wwv_flow_utilities </span >
    v_line: = REPLACE (v_line, ';', ' :');)
    -Converting each column separated by: in the data table </span >
    v_data_array: = wwv_flow_utilities.string_to_table (v_line);
    If IsNumber (substr (v_data_array (9), 1, 1)) = 1 then
    v_data_array (9): = substr (v_data_array (9), 1, 11);
    on the other
    v_data_array (9): = January 1, 1900 ";
    end if;
    v_data_array (9): = NVL (v_data_array (9),'' 01-JAN-1900);
    -Insert data into the table target </span >
    EXECUTE IMMEDIATE ' insert into scg_recievables2 (Account_receivable_number, the_account_number, bill_history_tran, service_number, item_type, the_amount_billed, the_remaining_amount, source_of_payment)

    values (: 1,: 2:3:4: 5: 6: 7: 8,:' 9)
    USING
    v_data_array (1),
    v_data_array (2),
    v_data_array (3),
    v_data_array (4),
    v_data_array (5),
    v_data_array (6),
    v_data_array (7),
    v_data_array (8);
    -Remove
    v_line: = NULL;
    v_sr_no: = v_sr_no + 1;
    END IF;

    END LOOP;
    END;

    As mentioned, this disrupts the question, because a possible answer was published in the OTHER thread... Check your server logs, you probably delay... Preliminary discussions with a similar problem:

    Take a look at the httpd.conf file (or get your system administrator to look at it) and see what's on the value of TimeOut. You may need to increase in order to export large tables by APEX.

    http://www.apacheref.com/ref/http_core/timeout.html

    Thank you

    Tony Miller
    Webster, TX

    A lady came up to me on the street, pointed at my suede jacket and said: "do you not know that a cow was murdered for that jacket?
    ' I didn't know there are witnesses ', I replied: "now, I'll have to kill you too. '

  • Run a batch file script

    Hi all

    I want to run a SQL script that is executed from a batch file.
    Lets say, I have the file loader.bat. This .bat file connects to Oracle and wants
    to run the .sql file

    The content of the file loader.bat is
    sqlplus 
    @C:\temp_val_id.sql
    At runtime, it calls in the name of user and password. I enter the user name and password and then log on to Oracle
    But the temp_val_id.sql file isn't exectuted.

    The output is as below, but .sql file does not run
    C:\>sqlplus
    
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 28 17:19:50 2012
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Enter user-name: utest_tt_senayat/password@silver3
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL>
    I'm now trying another method
    sqlplus 
    @@C:\temp_val_id.sql
    The result is the same as above. Do not run temp_val_id.sql

    Could someone please help me,

    Thanks in advance
    Saaz

    Saaz Ena wrote:
    sqlplus/nolog @test.sql

    test.sql content:

    connect &user/&pass
    select sysdate from dual;
    exit;
    /
    
    C:\work\test>sqlplus /nolog @test
    
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 28 16:21:12 2012
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Enter value for user: system
    Enter value for pass: manager
    Connected.
    
    SYSDATE
    ---------
    28-MAR-12
    
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    

Maybe you are looking for

  • Webcam no longer works on my Satellite U405D-S2874

    So yesterday I video chat with someone on my Toshiba laptop - model: Satellite U405D-S2874 - and then today I went on Skype and he wonâ? allow me to video chat! So I went to the camera assistant software and it says 'Webcam driver open failed. "Pleas

  • Strange call

    I just got a call from a gentleman who said he was with the support of Startech and they had received a report of error on my computer (which is possible).  He asked me to allow him to log on to my computer.  Anyone know if it's legitimate?

  • How I managed has installed Windows 7 on my pavilion g6-2346nr provided with Windows 8?

    I disabled the secure boot and activated the legacy os support. When running the installer I get this error: missing cd/dvd device driver.  I know that the cd / dvd readers have not specific drivers. which chipset driver I have to load? I tried to do

  • convert a virtual OS current vista OS

    I'm starting bussiness 32-bit vista and win 7 pro x 64 now, how could I convert vista into a real operating system without having to reload all my legacy programsis it possible and if so where are the steps to do

  • Administrator for BIOS password

    Hello, I will like to know my administrator password. My 3 try error code is 77107427 on a Hp Pavilion G4. Thank you!