How to restore some *.sql in oracle 10g

Hi someone gave me a cd with .sql backup and told me to restore it in oracle.
Can someone tell me how to do it or some hints in the type of recovery I should use?
Thanks

mmm. not much detail in there. The .sql files are probably sqlplus scripts that at a guess create objects. If you're lucky they will also define the schema that they should be created in. The .zip file is probably a file of data either in some predefined format e.g. csv, in which case you can load it using sqlldr or it could be a big file of insert statements.
My first steps would be -
1/ find out which user the scripts are supposed to be run as.
2/ read the .sql scripts to find out what they do and which order they should be run in
3/ run the .sql scripts
4/ look at the zipped file and work out how to load it.

Similar Messages

  • How to install Procedural Option in Oracle 10g Database express edition

    When i try execute exec send_mail shows error ORA-00900: invalid SQL statement.
    Error code shows "This error can occur if the Procedural Option is not installed "
    How to install Procedural Option in Oracle 10g express edition
    I'm using Oracle 10g Database express edition. Let me know how to run a procedure.

    I'm not sure of the meaning of ORA-00900 for Oracle XE but I think that PL/SQL is already installed by default according to the XE features list.
    See the Oracle® Database Express Edition 2 Day Developer Guide about procedure call.

  • How to find encrypted columns in oracle 10g database

    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?
    Thanks..

    user602872 wrote:
    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?Hmm not which I could find,
    SQL> select * from dict where lower(table_name) like '%encrypted%';
    TABLE_NAME
    COMMENTS
    DBA_ENCRYPTED_COLUMNS
    Encryption information on columns in the database
    ALL_ENCRYPTED_COLUMNS
    Encryption information on all accessible columns
    USER_ENCRYPTED_COLUMNS
    Encryption information on columns of tables owned by the user
    SQL>HTH
    Aman....

  • Learning PL/SQL in Oracle 10G XE

    Successfully installed Oracle 10G XE on my desktop. I'm a newbie Oracle user who wants to learn PL/SQL through Oracle 10G XE.
    Is this possible? Hope you can give me tips and advice on how I would start with this?
    Thanks!

    Certainly possible. I would suggest you crack open the PL/SQL Users Guide. DO you have previous programming experience? If so, looks at the examples.

  • How to create new database on Oracle 10g

    Hi All,
    Can any one tell me how to create new database on oracle 10g.
    Thanks in Advance for your help.

    again some confusion here.....
    u said u need a new database in your first post and now you saying u need a new schema..
    one database has many schemas(users)..... ex: scott,sys,system are few of them...
    now it depends you need seperate database for test,dev environment - this is in the case u have many schemas under each database and many tables(objects) under each schema.
    OR
    You just need a separate schema (in same db) for test,dev environment...where in you will have multiple tables in each schema...U need to know the dba credentials of the db to create a new schema.
    ideally u need to have different database...You can create one with out sys/system(oracle users) password as these passwords are db dependent.
    what you need is access to the any machine where server is installed(can be the same mc where you have your dev db or a diff machine) and that will be the machine where your db will be installed (can do it through database configuration assistance),ofcourse you will need windows authentication for this.
    so you login to the same machine or access it from your machine using remote login.
    I hope that is clear.Hope i am not listing things that you already know..Just did it coz of confusion between db and schema
    Message was edited by:
    coolguy

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • How to access MS SQL in Oracle BI Administration?

    Hi All,
    I'm a new in Oracle BI, I've just created an business application using Oracle BI Administration Tool of Oracle BI Server version 10.1.3.4.1:
    Steps:
    1. building repository (through Physical, Business model and Mapping, Presentation),
    2. making Answers from Presentation Services.
    => It ran well and beautiful reports, charts. But now, my DB is stored in Microsoft SQL Server, help me how to access MS SQL in Oracle BI, more details steps, are there any useful links?
    Appreciate All.

    Hi
    Do the following
    Control panel> Administration tool> ODBC>SystemDSN > ADD > select the driver>Your SQL SERVER credentials
    Then test the connection
    Go to the BI tool
    IMPORT from Database>Select the SQL server connection you have just created>Locate your desired schema> configure the connection pool> import
    regards
    Roy

  • How can I change SGA_TARGET IN Oracle 10G.

    Dear Experts,
    Please tell me
    How can I change SGA_MAX_SIZE IN Oracle 10G.
    How can I change SGA_TARGET IN Oracle 10G.
    How Can i recreate SPFILE IN Oracle 10G.

    Dear Experts,
    Please tell me
    How can I change SGA_MAX_SIZE IN Oracle 10G.
    How can I change SGA_TARGET IN Oracle 10G.
    How Can i recreate SPFILE IN Oracle 10G.SGA_MAX_SIZE and SGA_TARGET are all to be changed by alter system statement.
    The difference is, you can't make change to SGA_MAX_SIZE effective while instance is running. Need restart database to make change effective.
    Your can change SGA_TARGET while instance is running, as long as it's smaller than SGA_MAX_SIZE
    to recreate a spfile,
    you can shutdown your database,
    find a copy of valid pfile,
    startup pfile=/directory/yourpfile
    and
    create spfile from pfile;

  • How can I change SGA_MAX_SIZE IN oRACLE 10G.

    Dear Experts,
    Please tell me
    How can I change SGA_MAX_SIZE IN Oracle 10G.
    How can I change SGA_TARGET IN Oracle 10G.
    How Can i recreate SPFILE.

    another copy of dup How can I change SGA_TARGET IN Oracle 10G.

  • How to create ODBC connection between Oracle 10g and MS SQL Server

    Hi,
    Can someone help us with the steps to create an ODBC connection between Oracle APPS using Oracle 10g database and MS SQL Server.
    Requirement is to extract the transactional data from MS SQL Server on a daily basis and dump it into Oracle tables for an interface to be run. Currently it is being done through Dataloader tool which we feel is causing the data issue with Arabic characters. We want to create the ODBC directly between Oracle and MS SQL Server and check if the data is being pulled correctly.
    The data is in sql server 2000 which has data in Arabic_CI_AS character set which is moved to Oracle 10.2.0.3 database with characterset AL32UTF8. The table data is moved to oracle using the dataloader 3.6 standard edition licensed version. We cannot change the character set of Sql Server 2000.
    Please help
    Thanks
    Shanil

    Hi,
    If you're trying to PULL data from SQLServer into an Oracle database, you wouldnt use Oracle ODBC driver for that, so you may want to post in the Heterogeneous Services forum instead:
    Heterogeneous Connectivity
    If you're trying to PUSH data from SQLServer into an Oracle database, you could use ODBC but most folks use OLEDB for that, and the following note on MOS should help:
    How to Create a Sql Server Linked Server With The Oracle Provider for OLE DB     (Doc ID 191368.1)
    As with any NLS related issue, the first thing to do is dump the codepoints of the data in the Oracle database to see if it is stored validly, rather than relying on what the data "looks like" from some tool or other. It's best to check a single row, with only a few characters in it if you can, and you can do that via
    SELECT DUMP(<columname>,1016) FROM <tablename> WHERE ...
    Hope it helps,
    Greg

  • How to get best material for Oracle 10G PL/SQL

    Please help me out to get best material for Oracle 10G PL/SQL form oracle site.
    Thanks in Advance

    There's no special book or material related Oracle 10g PL/SQL. Can you explain what you want ?
    Please refer to this page for more information:
    http://www.oracle.com/technology/tech/pl_sql/index.html
    Edited by: Kamran Agayev A. on Aug 14, 2009 11:41 AM

  • How to archive and Purge in Oracle 10g based on data

    Hi,
    Our requirement is that based on some rules stored in static tables we want to perform Archiving, purging and compression of data in Oracle 10g.
    Can anyone guide me to proper information material for how to go about this?
    Thanks!
    Avinash.

    Hi,
    Thanks for the information.
    But this traditional way of doing is archiving is for maintenance and backup operations.
    We want to have this process online, without taking db offline. In this case will this approach work?
    In our case, the rules can be like -
    1. For table 'A', if rows exceed 10Million, then start archiving of the data for that table.
    2. For table 'B', if data is older than 6 motnhs start archiving of the data for that table.
    3. Archiving should be on for 15 minutes only after that should pause, and should resume whenever user wants to resume.
    4. Archiving should start on specified days only... ETC...

  • How to Switch between Databases in ORACLE 10g?

    Hi friends, im using ORACLE 10g.
    I have two databases namely ORCL and ORCL1.
    First I created ORCL and later ORCL1.
    Now I am able to see the tables from ORCL1 only.
    How can I switch to ORCL?
    Thanks in advance.

    Hi Aman, I am posting the results below.
    From the command prompt:
    C:\>SET ORACLE_SID=ORCL
    C:\>SQLPLUS
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 19 18:12:24 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    SQL> SELECT * FROM TAB;
    TNAME TABTYPE CLUSTERID
    DEPT TABLE
    EMP TABLE
    BONUS TABLE
    SALGRADE TABLE
    SB4782 TABLE
    EDNLN270042 TABLE
    CASE_DETAILS TABLE
    7 rows selected.
    SQL>
    And from the SQL*Plus Editor:
    SQL> SET ORACLE_SID=ORCL;
    SP2-0735: unknown SET option beginning "ORACLE_SID..."
    SQL> SELECT * FROM TAB;
    TNAME TABTYPE CLUSTERID
    DEPT TABLE
    EMP TABLE
    BONUS TABLE
    SALGRADE TABLE
    SQL>
    So, I am able to get the tables through the command prompt.
    But from the SQL*Plus Editor, I am not getting them.
    How to get those tables(from ORCL) through the SQL*Plus editor?
    Is there any other alternative for setting the ORACLE_SID permanently?
    Thank you.

  • How to verify stored procedures in Oracle 10g.

    I would like to locate default stored procedure in Oracle 10g database.
    And Suggest which stored procedure can be converted in to JAVA code ??

    If the Java part of the question refers to looking for potential to speed up your stored procedures:
    You should consider native compilation which transfers your code to shared libraries which are bound to the DB kernel.
    In this case however consider, that this does not make any sense/improvement for pure data access statements but only for procedures consisting of complex algorithmic processing.
    For details refer to
    [How native compilation works|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2280]
    and
    [Setting Up and Testing PL/SQL Native Compilation|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2309]

  • How can I get certified in oracle 10g DBA

    Hi,
    I have been working as a DBA for past 3 years. Our database is 8i and now i want to upgrade to 10g.
    I want to get certified in oracle 10g DBA. So far I havn't written any exam in oracle dba.
    Please assist/suggest and show some path to get it achieved.
    How to check and when I can appear for the exam and types of questions etc...
    Regards,
    Ravi

    There is a separate forum related to certifications only. Please post this query there.
    Oracle Certification Program
    To get you started, you can start browsing from this point.
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=143#2

Maybe you are looking for

  • Error: 'else' without 'if'

    Heres my code, and I am getting this error even tho i have {} pairs correctly placed. This is for a DOS clone that I am implementing in a game.           String command = ""; /*This holds what the user inputs for command line*/           String help

  • How to optimize the query

    Hi, This below query is taking more than 1hour. So I want to optimize this query.Any suggestion is appriciated. In Table customer_details total number of records are 40,000. Among which custno with id='J' are 7000. select distinct(A.custno) from (sel

  • Link to .pdf on Desktop

    Good day, everyone, Does anyone know of a way to put a link to a .pdf document on the desktop? I have GoodReader to read .pdfs, but I would like to just "otuch" and icon to get to documents I refer to frequently. Thanks in advance! Ray

  • Hyper-V VM Windows Server 2003 R2 SP2 Network Problems

    Hi Guys, I am trying to setup a new VM in my lab (I am using windows 8.1 in my host)  with Windows Server 2003 R2 SP2. I already installed the integration services in that VM, the network adapter is ok (Hyper-V network adapter). Well, everything it s

  • Problems while displaying messges on jsp under struts

    hi all, i have split up sing up page into two different pages and they are working fine. i have validated the form elements through struts validation, when there is any problem occured while submitting the form, means in case of invalid input or empt