Where is the KGLR.SQL script?

Does any know where the kglr.sql script is located? Oracle references it in the ora-04052 error message.

Here are some notes from the Recovery Manager Users Guide and Reference:
The create catalog command (see "createCatalog" on page 10-59) creates the recovery catalog. It replaces catrman.sql and associated scripts in the
dbs/admin directory.
To create an 8.1.6 catalog that is backwards compatible with pre-8.1.6 RMAN executables, you must issue create catalog with the older RMAN version first(or run catrman.sql if using a pre-8.1.5 release), and then execute upgrade catalog with the 8.1.6 RMAN.
Note: In releases prior to 8.1.5, you created the recovery catalog schema by connecting to the recovery catalog database and executing the catrman.sql script.

Similar Messages

  • Where is the catrman.sql script ?

    Hello,
    I have created the rman user in a new database and now want to execute the catrman.sql script.
    But it's not in the default location
    @ORACLE_HOME/rdbms/admin nor everywhere on my harddrive.
    I need it to have a Recovery-Katalog.
    Thanks

    Here are some notes from the Recovery Manager Users Guide and Reference:
    The create catalog command (see "createCatalog" on page 10-59) creates the recovery catalog. It replaces catrman.sql and associated scripts in the
    dbs/admin directory.
    To create an 8.1.6 catalog that is backwards compatible with pre-8.1.6 RMAN executables, you must issue create catalog with the older RMAN version first(or run catrman.sql if using a pre-8.1.5 release), and then execute upgrade catalog with the 8.1.6 RMAN.
    Note: In releases prior to 8.1.5, you created the recovery catalog schema by connecting to the recovery catalog database and executing the catrman.sql script.

  • Running the same sql script in multiple databases

    Hello,
    What is the method to run the same sql script in multiple databases? I want to write a unix script that would select from different databases and run a sql/plsql script in those different databases. What are the ways to write such a unix script? Thank you in advance.

    Just have a parameter which takes in the oracle connection parameters and use it in your sqlplus script with your shell script.
    Your sqlplus script can have a procedure/function call or an anonymous block;
    Then have a wrapper script to call the original script with different connection parameters. Hope this helps.

  • How can I extract the full SQL script for a schema?

    Hi,
    How can I extract the full SQL script for a schema?
    I am looking for some method that needs jus SQL*Plus and preferably doesn’t need any extra tool.
    Thank you,
    Alan

    How can I extract the full SQL script for a schema?What are you looking for? PL/SQL code? DDL for objects?

  • How and where to run utlxplan.sql script?

    Hi,
    A basic question: where and how to run utlxplan.sql script? I'd like to know both in window and linux environment.
    regards.....

    From sqlplus, you can connect as sys and run the utlxplan.sql. Then you need to grant privileges to other users and create synonyms...

  • How to reference dynamic parameters in the PL/SQL script

    The meaning of dynamic parameter is the position and name of parameters will be changed based on the data structure of a referenced text file reading by the concerned PL/SQL script. Anybody can post a sample code will be very appreciated.

    The SQL and PL/SQL discussion forum is a good source for this kind of information.
    The URL is:
    PL/SQL

  • Where is the batchusr.sql location???

    dear all,
    where is the location of batchusr.sql actually ????
    i've searched on my db and oas home, even in oas installer : discoverer\utils directory, but still not found.
    there are any other source location to find it ???
    this is the first time i try to make a batch repository for scheduled reports.
    pliz, need help from all of u....
    thanks before....

    Hi,
    It is part of the Discoverer Administrator release and so will be on the desktop you used to create the EUL in the <DevSuite Home>\discoverer\util directory.
    Hope that helps,
    Rod West

  • Where are the Portal upgrade scripts ???

    Where are the Portal 3.0.7 -> 3.0.8 upgrade scripts ????
    Cannot find the om neither Technet or itools.us.oracle.com ?

    Hi,
    The Solaris scripts also work on Compaq Tru64. The first chapter of the Upgrade documentation lists all the supported paths.
    null

  • Where is the sysV service script? /etc/rc.d?

    I hear about that archlinux is sysV. But I can't find any dir's name which likes "rc1.d", "rc3.d".
    Where is it?

    tx-cary wrote:But why I can "init 1" "init 3" ?
    "init 1" and "init 3" are the normal *nix init process.  However, handling of what happens when that init is called is usually determined by different scripts - this is where SysV and BSd init systems are different....

  • Where are the createDB2.sql and createDB3.sql files located?

    I have looked in both the client and server installation software but cannot locate the files. Please advise or provide if possible.
    Thanks!

    Hi,
    I don't use RoboSource Control, but perhaps the following articles will help:
    http://www.adobe.com/devnet-archive/robohelp/articles/robosource.html
    http://kb2.adobe.com/cps/403/kb403869.html
    http://help.adobe.com/en_US/RoboSourceControl/8.0/RoboSource_Control_Help/whatis.htm
    Perhaps another forum member knows more about installing RoboSource Control.
    Greet,
    Willam

  • Tracking the order of execution of sql scripts in SQL*Plus

    In our production environment we sometimes have to run some .sql scripts in a particular order. Since the order of execution is important , i have created another .sql file caller caller.sql(shown at the bottom) which will call all the scripts in the right order.
    i thought of putting a exec DBMS_LOCK.SLEEP (5); after the end of every execution of the script so that i can see the
    'Ending script1'message .
    The spooling within the caller script(execute_stack.log) has become meaningless because each script has a spool <filename.log> and spool off within it. These spool logs (for every script) is important for tracking purposes as each script belongs to a different development team and i have to send them the spooled log file after the execution.
    I don't want to see the entire scripts running by in my screen. Since these scripts have their own spooling, i can later check the logs if the scripts where executed properly.
    So i need two things.
    1.I just need to see the following and nothing else in the screen.
    Ending script1
    Ending script2
    Ending script3
    .2. I need to log the order of execution. ie. the execute_stack.log should look like the above.Since there is a spool off within each script, this wouldn't be possible.Right?
    Ending script1
    Ending script2
    Ending script3
    .The caller.sql script which calls all the scripts in the right order
    alter session set nls_date_format = 'DD-MON-YYYY hh24:MI:SS';
    set serveroutput on
    set echo on;
    set feedback on;
    spool execute_stack.log
    @script1.sql
    exec dbms_output.put_line ('Ending script1');
    dbms_output.put_line(chr(10)||chr(10)||'.'||chr(10)||'.'||chr(10));
    exec DBMS_LOCK.SLEEP (5);
    @script2.sql
    exec dbms_output.put_line ('Ending script2');
    dbms_output.put_line(chr(10)||chr(10)||'.'||chr(10)||'.'||chr(10));
    exec DBMS_LOCK.SLEEP (5);
    @script3.sql
    exec dbms_output.put_line ('Ending script3');
    dbms_output.put_line(chr(10)||chr(10)||'.'||chr(10)||'.'||chr(10));
    exec DBMS_LOCK.SLEEP (5);
    @script4.sql
    dbms_output.put_line(chr(10)||chr(10)||'.'||chr(10)||'.'||chr(10));
    exec dbms_output.put_line ('Ending script3');
    commit;
    spool off;Is this a professional way of tracking the execution of .sql scripts?

    Pete_Sg1 wrote:
    Is this a professional way of tracking the execution of .sql scripts?No. There is very little professional about using .sql scripts on a production system - when stored procedures are safer, more robust, easier managed and controlled and secure.. and where a log table can be used to properly log the runtimes (and other stats) of each processing step.
    Let's just take a look at the number of moving parts you need to schedule and run a .sql script. A cron job needs to be configured with the proper environment setting. It needs to run a shell script. That shell script needs to load SQL*Plus. SQL*Plus needs to connect to the database (starting a dedicated server process most likely). SQL*Plus then needs to read a .sql file, parse these commands and either execute these locally (SQL*Plus commands) or remotely (PL/SQL and SQL commands).
    How can this be considered professional when the very same can be achieved with a
    - stored procedure
    - using DBMS_JOB to schedule the procedure for execution
    There are so many things that can go wrong with the first method. And so few things that could go wrong with the last one. No contest as to which method is not only better, but also professional.
    PS. See that you use Windows to run these scripts. It is even worse as it introduces another hardware and software layer making the scenario even more insecure & unsafe with more moving parts that can go wrong or simply fail.

  • Promt from user to proceed in case of error in sql script in sqlplus

    I am using Oracle 10g on Linux platform. I am executing a control.sql script from sqlplus from where i cam calling three *.sql scripts:
    control.sql
    SPOOL test.log
    SELECT 'Start of Control File at:'||systimestamp from dual;
    @00_create_table_scripts.sql
    @01_alter_table_scripts.sql
    @02_insert_scripts.sql
    SELECT 'End of Control File at:'||systimestamp from dual;
    SPOOL OFFI want that whenver there is an error in any of the three sql scripts, a prompt should be displayed asking the user if he wants to continue or not(Y/N). If he presses Y, then the remaining script shall be executed, otherwise execution should be stopped there.
    Can any body guide me how can i do this?
    Thanks.

    I want that whenver there is an error in any of the three sql scripts, a prompt should be displayed asking the user if he wants to continue or not(Y/N). If he presses Y, then the remaining script shall be executed, otherwise execution should be stopped there.If you have toad installed on your machine ,please run control.sql file from your machine .Toad will prompt an alert message saying that so and so error occurred and do you want to continue with that exception or not .
    Thanks,
    Prakash

  • ORA-27369 Exit-Code: 255 when executing sql script as job

    Dear all
    I'd like to find and compile all invalid objects in an instance. This should be done every day as a scheduled job with the use of DBMS_SCHEDULER.
    For this, I set up the following sql-script:
    ---------start script--------------
    set heading off;
    set feedback off;
    set echo off;
    Set lines 999;
    Spool /tmp/run_invalid.sql
    select
    'ALTER ' || OBJECT_TYPE || ' ' ||
    OWNER || '.' || OBJECT_NAME || ' COMPILE;'
    from
    dba_objects
    where
    status = 'INVALID'
    spool off;
    set heading on;
    set feedback on;
    set echo on;
    @/tmp/run_invalid.sql
    exit
    ------ end script ----
    The script ist working well when executed manualy via sqlplus. As you can see, it spools the commands to a second file (run_invalid.sql) which is the beeing executed to compile the invalid objects found.
    I now want to schedule this script via DBMS_SCHEDULER (running the job every day at 7AM). Creation of the job:
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'compile_invalid_objects',
    job_type => 'EXECUTABLE',
    job_action => '/home/oracle/scripts/sql/compile_invalid_objects.sql',
    start_date => trunc(sysdate)+1+7/24,
    repeat_interval => 'trunc(sysdate)+1+7/24',
    enabled => TRUE,
    comments => 'SQL-Script, und invalid objects zu finden und zu kompilieren'
    END;
    Manualy execute and error message:
    BEGIN
    DBMS_SCHEDULER.RUN_JOB (job_name => 'compile_invalid_objects',
    use_current_session => true);
    END;
    FEHLER in Zeile 1:
    ORA-27369: Job vom Typ EXECUTABLE nicht erfolgreich mit Exit-Code: 255
    ORA-06512: in "SYS.DBMS_ISCHED", Zeile 150
    ORA-06512: in "SYS.DBMS_SCHEDULER", Zeile 441
    ORA-06512: in Zeile 2
    --> Sorry for this, I'm using german localized oracle.
    Unfortunately, it seems that only Shell-Scripts can be scheduled when using job_type='EXECUTABLE'. Can you confirm this?
    BTW: The script is chmoded to 777, therefore it can't be a permission problem.
    Is there maybe another solution with one single script using dbms_output functionality and run the script in a loop?
    To complete my post, here are the commands used to create and test the job:
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'compile_invalid_objects',
    job_type => 'EXECUTABLE',
    job_action => '/tmp/compile_invalid_objects.sql',
    start_date => trunc(sysdate)+1+7/24,
    repeat_interval => 'trunc(sysdate)+1+7/24',
    enabled => TRUE,
    comments => 'SQL-Script, und invalid objects zu finden und kompilieren'
    END;
    Thanks for your help
    Casi

    You could more simply use $ORACLE_HOME/dbms/admin/utlrp.sql

  • Question about correctly EXIT on SQL Script

    Hi there,
    I have created a SQL script, every time when the raise_application error appears then of course the PL/SQL block ends but then still the external sql script is being executed, how can I prevent the External sql script from being executed after a raise application error is displayed?
    Regards
    RobH
    DECLARE
    BEGIN
    IF start_date > stop_date
    THEN
    raise_application_error (-020110,
    'Start Date can not be greater Stop Date. '
    ELSE ..... do some selecting and inserting of data into temporary tables etc...
    END IF;
    END;
    --And now a external SQL script should be started...
    @c:\reports\test.sql

    you can trap your exception in the inner block using EXCEPTION block and from there propagate it to the external block to stop further processing. something like this...
    DECLARE
      l_deptno NUMBER;
    BEGIN
      FOR i IN (SELECT deptno FROM dept)
      LOOP
        BEGIN
          FOR j IN (SELECT empno, ename FROM emp WHERE deptno = i.deptno)
          LOOP
            IF ( i.deptno = 20 ) THEN
              RAISE_APPLICATION_ERROR(-20001, 'Error Raised');
            ELSE
              DBMS_OUTPUT.PUT_LINE('Dept = ' || i.deptno || ' EmpNo: ' || j.empno || ' EName: ' || j.ename);
            END IF;
          END LOOP;
        EXCEPTION
          WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('Error Trapped Inside');
            RAISE;
        END;
      END LOOP;
    EXCEPTION
      WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE('Error Trapped Outside');
    END;
    SQL> /
    Dept = 10 EmpNo: 7782 EName: CLARK
    Dept = 10 EmpNo: 7839 EName: KING
    Dept = 10 EmpNo: 7934 EName: MILLER
    Error Trapped Inside
    Error Trapped Outside
    PL/SQL procedure successfully completed.

  • How to load SQL scripts from a text file.

    Hi, i tried several time to load a text file/SQL script with 10 different tables and data, but 10g Express doesen't allows me to do that, any one can direct me or point out to me what i should do or do i need to adopt any special method to to get this done. i am sure there must be some thing where you can upload SQL scripts from a text file (in SQL command editor!). thanks

    Hi,
    see my other answer here:
    SQL command editor doesn't take more than 1 insert command
    This seems to be a duplicate question, right? Or am I missing something?
    Regards,
    ~Dietmar.

Maybe you are looking for

  • After the official 10.1 os update my bluetooth in car does not work like it used to.

    ***SORRY THIS IS CLONED of this http://supportforums.blackberry.com/t5/BlackBerry-​Z10/In-car-bluetooth-not-working-properly-after-10​... New to forum sorry. I have a BB Z10 and whenever I entered my vehicle the in-car bluetooth would connect/pair to

  • APP-SQLAP-10380: You cannot select this payment document

    User did a quick payment. When the check failed to print user voided the check and tried to reprint. Now when the user is trying to reissue the check they are getting the following: APP-SQLAP-10380: You cannot select this payment document because it

  • Windows 7 (64 bit) - can't update itunes.

    i get a message "thre is a problem with this windows installer package. a program required for this install to complete could not be run".  no hints as to what the problem program might be, thank you.  I can't update ipad to ios5 without updating the

  • What are all the settings for getting mean ,St.deviation & CP & CPK value

    Dear All. What settings i need to do for getting mean , standard deviation , CP & CPK values in standard reports of QM. like MCVD. Rgds, Mani

  • Profit analysis in CS

    For a client implementing CS module and already having MM,SD and PP modules in place, should we use COPA, result analysis, Activity Based Costing or any other module in CO to analyse their profitability product-wise, customer-wise and item-wise?