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.

Similar Messages

  • 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 Migrate DB2 database to Oracle 10g R2 with this Developer Workbench

    Hi
    Can anybody tell how to migrate all the data which is present in DB2 to Oracle 10g Release2 through this tool. will it be possible to migrate all the data(tables,stored procedures,views,etc)?.
    if anybody knows how to do it please provide me the entire steps for the same.
    I am in bad need of help to Migrate my database to Oracle 10g R2
    Thanks in expectation,
    Selva

    Selva,
    The link for plugins is: http://www.oracle.com/technology/software/tech/migration/workbench/index.html. You can find DB2 plugins at the bottom of the page.
    Regarding the migration procedure, you can start by reading this document:
    http://www.oracle.com/technology/tech/migration/workbench/htdocs/101040/user_guide/book.pdf
    Good luck,
    andrei

  • How do l create a new database in Oracle 10g Express

    How do l create a new database in Oracle 10g Express, other than the one that is created on installation?

    Hello,
    You cannot create a second XE database on the same server.
    But, Oracle database can support as many Schema as you want.
    "Oracle database" is like "SQL Server Instance" and "Oracle Schema" is like "SQL Server database". I means by this shortcut that for
    the end users accessing to different Schemas looks like accessing to different databases.
    You can have several applications on the same database. Each application has its own Schema and Datafile (Tablespace) structure.
    So on your XE database you can add a new Tablespace and create a new User/Schema as follows:
    sqlplus /nolog
    connect / as sysdba
    create tablespace {color:red}new_tablespace_name{color}
    extent management local autoallocate
    SEGMENT SPACE MANAGEMENT AUTO
    datafile '{color:red}complete_datafile_name{color}' size 100M autoextend on next 10M maxsize unlimited;
    create user {color:red}new_schema_name{color} identified by {color:red}password{color}
    default tablespace {color:red}new_tablespace_name{color}
    temporary tablespace TEMP
    quota unlimited on {color:red}new_tablespace_name{color}
    grant connect, resource to {color:red}new_schema_name{color};Then you can connect to this new User/Schema as you defined it and create your new structure and load datas.
    Hope it can help.
    Best regards,
    Jean-Valentin

  • 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....

  • How to migrate oracle 9i database to oracle 10g

    Hi All!
    Can anyone tell me the steps to migrate oracle database from 9i to 10g.
    what are the prerequisite and preliminary thing to consider...
    any thing related to migration.
    ThanQ.

    Which one is better?
    Thanks a lot.
    itpub888
    Re: How to migrate oracle 9i database to oracle 10g
    Posted: Aug 12, 2007 11:17 PM
    Hi,
    u can go for any of the migration steps provided by oracle..say
    1.By using DBUA
    2.By using PL/SQL scripts provided by oracle like utlu102i.sql
    3. Using exp/imp utilities
    4. Using Copy
    For further info, u can refer 10g upgrade guide available on OTN
    Regards
    ramesh

  • How to create a database in ORACLE 8i

    How to create a database in ORACLE 8i

    hello ...
    enter in
    http://www.oracle.com/pls/db102/portal.portal_db?selected=2 between demand and type in "create database"
    or read others docs ORACLE.
    AF

  • How to CREATE a DATABASE with ORACLE?

    Hello
    Can somebody please just tell me, how do i create a Database with Oracle 10g(Express Edition)? I find it very disturbing that not in one of the dozen Orcale books i have, they explain to you on how to create a DATABASE. They begin with how to create Table, can a table exist without a database?
    I have tried the command line, but it tells me im not connected or some kind of error. I have tried SQL Commands and then it gives me this Error:*ORA-01501: CREATE DATABASE failed*
    ORA-01100: database already mounted
    How come Oracle dont have just a simple button:CREATE DATABASE?
    Somebody please help!

    Duplicate thread ?
    Creating a DATABASE with ORACLE!
    Srini

  • 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 to maintain Data availability in Oracle 10g RAC when LOADING the data?

    Hi
    we are having Oracle 10g server on Sun Solaris(64 bit) with 8 GB RAM.
    We are in need of moving the database to "Oracle 10g RAC". (Real Application Clusters)
    Our doubt is when loading the data into RAC server, will it affect the application?
    coz' we heared that RAC server should be down when we load the data.
    Is this correct?
    If yes, then How to maintain High data availability when we load the data in RAC server?? Please help me.
    Thanks.

    First, is this the same question that a colleague of yours posted in this thread?
    Data Load in RAC
    Second, are other sessions querying the table that you're loading data into? If so, how are you loading the data?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Migrate Oracle 9i Database to Oracle 10g Solaris Platform

    Hi DBAs,
    Thank you very much all of you, you helped me in RMAN Duplicate Database, There was a problem in my backupset and now it has been resolved.
    I have now following task.
    I want to migrate Oracle 9i Database to Oracle 10g ASM, both are on Solaris platform. Please provide me step by step solution. I have very big Database about 250G Database.

    In the "Complete checklist for manual upgrades to 10gR2" is written:
    PREREQUISITES
    =============
    + Install Oracle 10g Release 2 in a new Oracle Home.
    + Install the latest available patchset from Metalink.
    + Install the latest available Critical Patch Update.
    ... so "Install the latest available Critical Patch Update" step is that for the Oracle 10g database Oracle Home or Oracle 9i database Oracle Home ? I think that is for the 10g database/ Oracle Home ...
    after applying the CPU pacht there is some "Post Installation Instructions":
    3.3.5 Post Installation Instructions which demande a connection to the database:
    3. For each database instance running out of the ORACLE_HOME being patched, connect to the database using SQL*Plus as SYSDBA and run catcpu.sql as follows:
    cd %ORACLE_HOME%\CPU\CPUJan2007
    sqlplus /nolog SQL> CONNECT / AS SYSDBA
    SQL> STARTUP
    SQL> @catcpu.sql
    SQL> QUIT
    My question is ... If I want to upgrade a 9i database to 10g and I apply this CPU before the upgrade is done (to 10g Oracle Home), how could I connect to an instance which is not present to run this script ? ... is this step mandatory or is optional ?
    Thanks,
    P.

  • IMP database for oracle 10G in window

    Hi Experts,
    I try to imp database from exp dump file.
    I am new person.
    When i create a blank database by Oracle 10G ( create general purpose database during install oracle).
    Now I want to imp a database about 250G size.
    DO I need to create a each tablespace in source DB before imp?
    I have a full exp database dump file?
    Can I directly imp a full exp dump files to copy source database?
    Thanks
    Jim

    Thanks for your help.
    If I do not create source DB tablespace. what kind of tablespace will be imp inot new database? default from source database?i
    I have a full exp dump file.
    also if you want to keep the same tablesapce as source then just create all of tablespace. how about data file? we can change data file size. is it true?
    Thanks
    JIM
    Edited by: user589812 on Feb 26, 2009 12:43 PM

  • 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 create materlised view in oracle 10g what are the step to create it

    hi,
    this hafeez i have a database in oracle 10g now i want to create materlised view to the database what arre the step required for it.

    You should refer to documentation for more information:
    [Overview of Materialized Views|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#CNCPT411]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Maybe you are looking for