Coonect local Oracle database

Hi, I'm quit new to java and I wrote a simple program for which I need connection to a local database.
My programruns fine connecting to remote db's but on the same machine is running a db as well, but I don't know how to change the connect-string to establish a connection.
For the remote databases I use the following url:
String url = "jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1526:dbname";
(the section with the x's is the ip-adress)
...can someone please help me?

if it is local, dont use password and log name. and name the server as localhost.
this should do it.
if you have more problems, i would suggest you to go to the jdbc forum since the guys there are db specials
jeliel

Similar Messages

  • Connect to local oracle database at form design with Win98 or Me

    Hi all,
    Is there a possible way to connect to a local oracle database when you design a form in Win98 or Me?
    Thank you

    is ur database up and running?
    are u able to log on personal oracle database?
    if so u can log on from forms to database..

  • Copying or Cloning a local Oracle Database on a remote Server

    Hi,
    I am NOT a database administrator. A requirement came up such that I had to take up the Database Administrator role. The problem is like this...
    I have an oracle 10gR2 (Development) database on a Windows 2003 Server situated locally (in India). I need to copy or clone this Oracle Database to another Windows 2003 Server located remotely (in USA).
    How do I do this? Well I have done some websearch and found out various methods like RMAN DUPLICATE and so on. I don't understand RMAN - I am not an Administrator.
    Please do give me the proper step-by-step functions that I need to perform to solve my problem.
    Thanks in advance for your help and support.
    Renj
    ----------

    http://www.akadia.com/services/ora_duplicate_database_rman.html
    How to clone database, using rman file from a differnt location.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006672
    DB Cloning using RMAN

  • Is there a way to sync a local Oracle database with an online one?

    Hi guys,
    I like the Oracle DBMS and it is taught at my University. The problem is, for my final year project I'd like to create a Windows App in C# and an ASP website that synchronises it's database with the Application/local database.
    If I use Oracle as the db of choice for my Application, how would I mirror it online? I see there is .NET hosting that includes SQL Server. Is there anything like that for Oracle or do I need to learn SQL Server?
    If that was the case I might as well switch over to SQL server for both databases.
    Many thanks,
    Mike

    Oracle has several inbuilt features to do so, like Logical Standby Database, Oracle Streams and Change Data Capture.
    Devloping an application to do manually what Oracle already is doing would be an extreme waste of time.
    Reading Oracle documentation to implement one of the aforementioned features wouldn't.
    Even if you prefer Mickeysoft, Mickeysoft already has DTS.
    Don't Universities teach to refer to official documentation nowadays?
    Sybrand Bakker
    Senior Oracle DBA

  • Cant connect to local oracle database unless connected to the web?

    Hi,
    If anyone can help me out, I have an instance of Oracle 11g running locally, which runs fine, but if i am not connected to the Internet the TNSNAMES connection fails, the TNSNAMES.ora is as follows, I think it must be the dynamically assigned IP address, so I replaced this with 127.0.0.1 but no joy, then it gives error ORA-12541: TNS:no Listener but I have also updated the Listener?
    Any Ideas
    TNSNAMES
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.168.2.2)
    LISTENER
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST =127.0.0.1)(PORT = 1521))
    Thanks

    also tried the PC name e.g.
    TNSNAMES
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = CPA)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.168.2.2)
    LISTENER
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST =CPA)(PORT = 1521))
    )

  • SQL Developer can't connect  Oracle Database as SYSDBA

    Dear all,
    Recently,I installed SQL Developer3.0 on my machine,and try to create connection to local oracle database.But one problem confused me.When i login as normal role ,it can connect DB successfully; when i login as sysdba role named sys,it always failed and show" invalid username/password".I am sure the username and password are right ,because i haved connected the oracle DB by pl/SQL with the same username and password. And i also choosed the role as sysdba. Does SQL Developer3.0 not support connect as sysdba? I would very appreciate if someone could give me a hand .Thanks in advance.

    Hi 851634,
    Do you require a password file for remote sysdba (old link)?
    Cannot login as sysdba in Oracle Enterprise Management Console
    You may be trying to log in (loopback) over the network as sysdba which needs a password file.
    -Turloch
    SQLDeveloper team

  • Problem in establishing connectin to Oracle Database using TOMCAT-APACHE

    Hello can anyone help me i can't establish a coonection to Oracle Database eventhough i have set everything in my server.XML...
    I manage to connect to ACCES database but not Oracle... help me... here is the resource portion in my server.xml
    <!-- My Forum Context - Access Database-->
    <Context path="/forum" docBase="forum" debug="0" reloadable="true">
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_forum_log." suffix=".txt" timestamp="true"/>
    <Resource name="jdbc/forumDb" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/forumDb">
    <parameter><name>user</name><value></value></parameter>
    <parameter><name>password</name><value></value></parameter>
    <parameter><name>driverClassName</name><value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
    <parameter><name>driverName</name><value>jdbc:odbc:forumDb</value></parameter>
    </ResourceParams>     
    </Context>
    <!-- PMOD Context - Oracle -->
    <Context path="/pmod" docBase="pmod" debug="0" reloadable="true">
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_pmod_log." suffix=".txt" timestamp="true"/>     
    <Environment name="maxExemptions" type="java.lang.Integer" value="15"/>
    <Parameter name="context.param.name" value="context.param.value" override="false"/>          
    <Resource name="jdbc/pmodDb" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/pmodDb">
    <parameter><name>user</name><value>pmod_owner</value></parameter>
    <parameter><name>password</name><value>pmod_owner</value></parameter>
    <parameter><name>driverClassName</name><value>oracle.jdbc.driver.OracleDriver</value></parameter>     
    <parameter><name>driverName</name><value>jdbc:oracle:thin:@192.9.200.2:1521:PMOD</value></parameter>
    </ResourceParams>     
    </Context>
    can anyone help... thanks...
    sharil

    hello....
    here is how i do it if i use access, i just set in my server.xml as bellow....
    <!-- PMOD Context -->
    <Context path="/pmod" docBase="pmod" debug="0" reloadable="true">
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_pmod_log." suffix=".txt" timestamp="true"/>
    <Ejb name="ejb/User" type="Session" home="pmod.user.UserHome" remote="pmod.user.User"/>
    <Environment name="maxExemptions" type="java.lang.Integer" value="15"/>
    <Parameter name="context.param.name" value="context.param.value" override="false"/>
                   <Resource name="jdbc/pmodDb" auth="SERVLET" type="javax.sql.DataSource"/>
                   <ResourceParams name="jdbc/pmodDb">
                   <parameter><name>user</name><value></value></parameter>
                   <parameter><name>password</name><value></value></parameter>
    <parameter><name>driverClassName</name><value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
              <parameter><name>driverName</name><value>jdbc:odbc:pmodDb</value></parameter>
    </ResourceParams>     
    </Context>
    later i would call from my servlet as follows
    InitialContext initCtx = new InitialContext ();
    DataSource ds = (DataSource)initCtx.lookup ("java:comp/env/jdbc/pmodDb");
    conn = ds.getConnection();
    then i can establish connection to my database... but now i change to oracle and my server.xml i configure as follows
    <!-- PMOD Context -->
    <Context path="/pmod" docBase="pmod" debug="0" reloadable="true">
              <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_pmod_log." suffix=".txt" timestamp="true"/>     
    <Environment name="maxExemptions" type="java.lang.Integer" value="15"/>
    <Parameter name="context.param.name" value="context.param.value" override="false"/>          
              <Resource name="jdbc/pmodDb" auth="Container" type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/pmodDb">
                   <parameter><name>user</name><value>pmod_owner</value></parameter>
                   <parameter><name>password</name><value>pmod_owner</value></parameter>                
                   <parameter><name>driverClassName</name><value>oracle.jdbc.driver.OracleDriver</value></parameter>     
                   <parameter><name>driverName</name><value>jdbc:oracle:thin:@192.9.200.2:1521:PMOD</value></parameter>
    </ResourceParams>     
    </Context>
    and i call from my servlet like before ...
    InitialContext initCtx = new InitialContext ();
    DataSource ds = (DataSource)initCtx.lookup ("java:comp/env/jdbc/pmodDb");
    conn = ds.getConnection();
    the datasource would return null in other word i cannot find the database
    however if i tried to establish connection directly,
    String u1 = "pmod_owner";
    String p1 ="pmod_owner";
    String path = "jdbc:oracle:thin:@192.9.200.2:1521:PMOD";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection( path, u1, p1 );
    i can talk with the database....
    so if anyone out there can help me to point me where did i go wrong?
    fyi: i have put a lib which contains oracle jdbc driver called classes12.zip in my c:\tomcat\common\lib\
    thank you

  • How to connect Oracle database using C/C++ on Mac OS X PPC G4, XCode 2.4.1?

    Hi All,
    How to connect the Oracle database using C/C++ on Mac OS X? I have used Instant Client library "instantclient-basic-macosx-10.1.0.3" provided by the Oracle but could not be success. I'm using PowerPC G4, Mac OS X 10.4.9, and XCode version 2.4.1.
    Specially Mr Oscar Armanini has done this in C on Mac OS X. Please let me know. I would be very thankful to you.
    Thanks,
    Ghufran

    Hi Ghufran
    there are two Metalink Notes on using Instant Client with PowerPc Mac:
    https://metalink.oracle.com/metalink/plsql/showDoc?db=NOT&id=316497.1
    How to Install, Configure and Test Oracle 10g Instant Client Basic,
    SQL*Plus and SDK Packages for Mac OS X
    (Runs OCI sample code - cdemo81.c)
    https://metalink.oracle.com/metalink/plsql/showDoc?db=NOT&id=332588.1
    How to Install, Configure and Test Oracle 10g Instant Client Basic,
    SQL*Plus and SDK Packages for Mac OS X
    (Runs OCCI sample code - occidml.cpp)
    The first Metalink Note uses an OCI examples and it is pasted here below,
    in case you don't have a Metalink ID.
    The second Metalink Note uses an OCCI example.
    I have never used Instant Client (neither on Os X or on other platform),
    but I was successful on compiling C programs (no GUI involved) using the
    Full Client installed on my PowerBook G4.
    I'm a DBA, but I was a developer years ago (about when Oracle 7.3
    was considered a giant step forward): I installed the Oracle 10.1 db
    (a complicated job for a developer) and I got the Full Client
    installed as well, for free, so I was happy to compile one of the demo C sources
    (those that you can find in the Oracle Pro*C manuals:
    by the way, Oracle Pro*C manuals are really worth reading).
    Good luck
    Oscar
    Applies to: Oracle Server - Enterprise Edition - Version: 10.1.0.3
    Apple Macintosh PowerPC
    Goal
    This article will show you how to install and configure your 10g Instant Client (IC) Software for the Mac.
    It will install the following packages:
    the Basic package
    the SQL*Plus package and
    the SDK package
    and then test its connectivity to an Oracle database using SQL*Plus.
    It will also show you how to setup and test a sample program, cdemo81.c, that uses the Oracle Call Interface (OCI)
    to connect to the database.
    The sample program is located under the <Instant_Client>/sdk/demo directory.
    Solution1. Download the following three (3) files from the Oracle Technology Network (OTN) website.
    You will need an account to do this.
    Macintosh OS X 10g Instant Client Software
    a. instantclient-basic-macosx-10.1.0.3.zip (32,395,622 bytes)
    b. instantclient-sqlplus-macosx-10.1.0.3.zip (326,740 bytes)
    c. instantclient-sdk-macosx-10.1.0.3.zip (293,913 bytes)
    NOTE: The above three (3) files will be updated as new patches are released for the 10g Instant Client software. 10.1.0.3 or later versions (10.1.0.x) of these files may be used similarly with this article.
    2. Save the following text into a file called tnsnames.ora:
    # If you receive an
    # ORA-12154: TNS:could not resolve the connect identifier specified
    # error when running the setup script and attempting to connect to Oracle
    # from SQL*Plus then the name of your SERVICE NAME (i.e. ORCL) may require
    # that you include the DOMAIN (i.e. US.ORACLE.COM) in order to connect successfully.
    # To obtain the DOMAIN of your environment, type "hostname" from your shell
    # and it should report this information back to you. Configure your SERVICE
    # NAME to look like Example 2.
    # Example 1
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = database_machine.us.oracle.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = orcl)
    # Example 2
    #ORCL.US.ORACLE.COM =
    # (DESCRIPTION =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = database_machine.us.oracle.com)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVER = DEDICATED)
    # (SID = orcl)
    3. Save the following text into a file called sqlplus_script.sql:
    SELECT user FROM dual;
    SELECT sysdate FROM dual;
    SELECT 'successful ' AS TEST_RESULTS FROM dual;
    exit;
    4. Save the following text into a file called setup1:
    # ===========================================
    # MAC OS X INSTANT CLIENT 10g SCRIPT - SETUP1
    # ===========================================
    # DESCRIPTION
    # ===========
    # This script will install and configure your 10g Instant Client (IC) Software
    # for the Mac. It will install the Basic, SQL*Plus and SDK (OCI/OCCI) packages
    # and then test its connectivity to an Oracle database using SQL*Plus.
    # Once this script has completed, you will need to run the script SETUP2 to build
    # and run the CDEMO81.C sample application located under the <IC>/sdk/demo folder
    # in your newly installed Instant Client home.
    # NOTE: In order for this script to run successfully, you MUST perform any
    # necessary actions required under the SETUP section below.
    # SETUP
    # =====
    # (1) You MUST be in a directoy with ALL of the following files
    # BEFORE running this script:
    # 1 - instantclient-basic-macosx-10.1.0.3.zip
    # 2 - instantclient-sqlplus-macosx-10.1.0.3.zip
    # 3 - instantclient-sdk-macosx-10.1.0.3.zip
    # 4 - tnsnames.ora (configured properly)
    # 5 - sqlplus_script.sql (connectivity test)
    # 6 - setup1 (this file)
    # 7 - setup2 (will run this file later)
    # (2) Edit the TNSNAMES.ORA file and update it with the necessary information
    # to connect to a database on your network. Be sure to note the comments
    # in this file. You will have to change the following information:
    # SERVICE NAME (orcl or orcl.us.oracle.com)
    # HOST (database_machine.us.oracle.com)
    # PORT (1521)
    # SID (orcl)
    # (3) Go to the end of this scrip and modify the following line:
    # ./instantclient10_1/sqlplus scott/tiger@orcl @sqlplus_script.sql
    # Replace "orcl" with the SERVICE NAME you used in step (2) above.
    # (4) To run this script use the command: ". setup1"
    # BEGINNING OF SCRIPT
    # output this file to your shell
    echo
    echo MAC OS X INSTANT CLIENT 10g SCRIPT - SETUP1
    echo
    #more setup1
    # output the TNSNAMES.ORA file to your shell
    echo TNSNAMES.ORA FILE
    echo
    more tnsnames.ora
    # remove the instantclient10_1 directory should it exist
    echo
    echo CHECKING FOR instantclient10_1 DIRECTORY...
    echo WILL REMOVE DIRECTORY IF IT ALREADY EXISTS
    echo
    rm -d -f -R instantclient10_1
    # extract the instantclient software (basic, sql*plus & sdk)
    echo
    echo
    echo INSTALLING SOFTWARE...
    echo
    echo BASIC
    echo
    unzip instantclient-basic-macosx-10.1.0.3.zip
    echo
    echo SQL*PLUS
    echo
    unzip instantclient-sqlplus-macosx-10.1.0.3.zip
    echo
    echo SDK
    echo
    unzip instantclient-sdk-macosx-10.1.0.3.zip
    # set the following environment variables
    # Uncomment if you want a way to find the Instant Client (IC) home quickly
    #export IC=$PWD/instantclient10_1
    # Dynamic Library path required to use the Instant Client (IC) software
    export DYLD_LIBRARY_PATH=$PWD/instantclient10_1
    # TNS_ADMIN is required if using the TNSNAMES.ORA file (recommended)
    export TNS_ADMIN=$PWD/instantclient10_1
    # display the modified environment variables
    echo
    echo SETTING ENVIRONMENT VARIABLES
    echo
    echo DYLD_LIBRARY_PATH
    echo $DYLD_LIBRARY_PATH
    echo
    echo TNS_ADMIN
    echo $TNS_ADMIN
    # display all environment variables
    #echo
    #echo ALL ENVIRONMENT VARIABLES
    #echo
    #env
    # copy the TNSNAMES.ORA to the instantclient directory
    echo
    echo COPYING TNSNAMES.ORA TO INSTANT CLIENT [IC] DIRECTORY
    echo
    cp tnsnames.ora ./instantclient10_1/tnsnames.ora
    # list the contents of the IC directory to see what has been installed
    echo
    echo INSTANT CLIENT [IC] DIRECTORY
    echo
    ls ./instantclient10_1
    echo
    # SQL*Plus Connectivity Test
    # To connect to the database specified in your TNSNAMES.ORA file change the
    # SERVICE NAME (i.e. orcl) below to the name of the entry in your TNSNAMES.ORA
    # file designating the specific database in which you want to connect to
    echo
    echo SQL*PLUS CONNECTIVITY TEST
    ./instantclient10_1/sqlplus scott/tiger@orcl @sqlplus_script.sql
    # Alternately, you can connect from SQL*Plus to Oracle without using a TNSNAMES.ORA
    # file. You can embed the NAME-VALUE pair of the SERVICE NAME from the TNSNAMES.ORA
    # file directly into the connection string making sure to use the proper HOST, PORT
    # and SID like so:
    #./instantclient10_1/sqlplus scott/tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=database_machine.us.oracle.com)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))
    5. Save the following text into a file called setup2:
    # ===========================================
    # MAC OS X INSTANT CLIENT 10g SCRIPT - SETUP2
    # ===========================================
    # DESCRIPTION
    # ===========
    # This script will build and run the OCI sample application CDEMO81.C inside
    # your Instant Client (IC) software located under the <IC>/sdk/demo folder.
    # NOTE: In order for this script to run successfully
    # (A) you MUST have already run the script SETUP1 successfully
    # and
    # (B) you MUST perform any necessary actions required under the SETUP
    # section below.
    # SETUP
    # =====
    # (1) You need to edit the CDEMO81.C application PRIOR to running this script to
    # change the connection information. By default, the application will attempt
    # to connect as user SCOTT with password TIGER to a local Oracle database using
    # the BEQ-LOCAL network protocol. This will not work.
    # (A) You need to make sure you have the SCOTT/TIGER schema created in your database.
    # If not, have your DBA create it by running the script "SCOTT.SQL" from your
    # <ORACLE_HOME>/rdbms/admin folder.
    # (B) You need to modify the CDEMO81.C application to connect to the database
    # you have configured inside your TNSNAMES.ORA file.
    # (i) Open the CDEMO81.C file located under the <IC>/sdk/demo folder.
    # (ii) Find the following line of code:
    # (void) OCIServerAttach( srvhp, errhp, (text *)"", strlen(""), 0);
    # and change the two empty strings to the SERVICE NAME you are using like so
    # (void) OCIServerAttach( srvhp, errhp, (text *)"ORCL", strlen("ORCL"), 0);
    # (iii) Save the file.
    # (2) You MUST be in the initial directory where you copied all of the files listed
    # in script SETUP1. In this same location you will find SETUP2. Run SETUP2 from
    # this location.
    # (3) To run this script use the command: ". setup2"
    # BEGINNING OF SCRIPT
    # output this file to your shell
    echo
    echo MAC OS X INSTANT CLIENT 10g SCRIPT - SETUP2
    echo
    #more setup2
    # output the TNSNAMES.ORA file to your shell
    echo TNSNAMES.ORA FILE
    echo
    more tnsnames.ora
    # output the username, password and service name from CDEMO81.C file to your shell
    echo
    echo USERNAME, PASSWORD AND SERVICE NAME INFO FROM YOUR OCI cdemo81.c FILE
    echo
    #more ./instantclient10_1/sdk/demo/cdemo81.c
    grep -i "*username" ./instantclient10_1/sdk/demo/cdemo81.c
    grep -i "*password" ./instantclient10_1/sdk/demo/cdemo81.c
    grep -i OCIServerAttach ./instantclient10_1/sdk/demo/cdemo81.c
    # display the required environment variables
    #env
    echo
    echo REPORTING REQUIRED ENVIRONMENT VARIABLES
    echo
    echo DYLD_LIBRARY_PATH
    echo $DYLD_LIBRARY_PATH
    echo
    echo TNS_ADMIN
    echo $TNS_ADMIN
    # move to the sdk/demo directory
    cd ./instantclient10_1/sdk/demo
    echo
    echo CHANGING TO [IC]/SDK/DEMO DIRECTORY
    echo
    ls
    # run demo application
    echo
    echo ATTEMPTING TO RUN APPLICATION
    echo
    echo BUILDING APPLICATION USING PROVIDED MAKE FILE, [IC]/sdk/demo/demo.mk...
    echo
    make -f demo.mk
    echo
    echo
    echo INSTANT CLIENT [IC] DIRECTORY...
    echo
    ls ../..
    echo
    echo CREATING links FOR REQUIRED LIBRARIES IN INSTANT CLIENT [IC] FOLDER...
    echo
    echo - libclntsh.dylib
    echo - libocci.dylib
    ln ../../libclntsh.dylib.10.1 ../../libclntsh.dylib
    ln ../../libocci.dylib.10.1 ../../libocci.dylib
    echo
    echo INSTANT CLIENT [IC] DIRECTORY WITH links CREATED...
    echo
    ls ../..
    echo
    echo
    echo EXECUTING APPLICATION...
    echo
    cdemo81
    echo
    echo
    # TROUBLE-SHOOTING
    # If you receive the following error messages:
    # Error - ORA-24327: need explicit attach before authenticating a user
    # Error - ORA-03114: not connected to ORACLE
    # Then you did not modify the CDEMO81.C application with proper SERVICE NAME
    # information. See step 1B under the SETUP section in this script to resolve
    # this error.
    6. Take all seven (7) files and move them into the same directory on your OS where you want to install the Instant Client software from:
    1 - instantclient-basic-macosx-10.1.0.3.zip
    2 - instantclient-sqlplus-macosx-10.1.0.3.zip
    3 - instantclient-sdk-macosx-10.1.0.3.zip
    4 - tnsnames.ora
    5 - sqlplus_script.sql
    6 - setup1
    7 - setup2
    7. Open the file tnsnames.ora. Be sure to review the comments in this file. You will have to change the following information to connect to a database on your network:
    SERVICE NAME (orcl or orcl.us.oracle.com)
    HOST (database_machine.us.oracle.com)
    PORT (1521)
    SID (orcl)
    Save the file.
    8. Open the file setup1, go to the end of this script and modify the following line:
    ./instantclient10_1/sqlplus scott/tiger@orcl @sqlplus_script.sql
    Replace orcl with the SERVICE NAME you used in Step 7 above. Save the file.
    9. You are now ready to install the 10g Instant Client software for Mac OS X. From the location where your seven (7) files reside, issue the following command:
    [macosx]/oracle> . setup1
    NOTE: Be sure to include the period "." and a space " " before the word "setup1" so all environment variables persist for the current session.
    This will install the Instant Client Basic and SQL*Plus software and connect to the database specified in the tnsnames.ora file.
    10. Here is the sample output of a successful execution of the setup1 script:
    [macosx]/oracle> . setup1
    MAC OS X INSTANT CLIENT 10g SCRIPT - SETUP1
    TNSNAMES.ORA FILE
    # If you receive an
    # ORA-12154: TNS:could not resolve the connect identifier specified
    # error when running the setup script and attempting to connect to Oracle
    # from SQL*Plus then the name of your SERVICE NAME (i.e. ORCL) may require
    # that you include the DOMAIN (i.e. US.ORACLE.COM) in order to connect successfully.
    # To obtain the DOMAIN of your environment, type "hostname" from your shell
    # and it should report this information back to you. Configure your SERVICE
    # NAME to look like Example 2.
    # Example 1
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = gbednars-pc.us.oracle.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = orcl)
    # Example 2
    #ORCL.US.ORACLE.COM =
    # (DESCRIPTION =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = gbednars-pc.us.oracle.com)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVER = DEDICATED)
    # (SID = orcl)
    CHECKING FOR instantclient10_1 DIRECTORY...
    WILL REMOVE DIRECTORY IF IT ALREADY EXISTS
    INSTALLING SOFTWARE...
    BASIC
    Archive: instantclient-basic-macosx-10.1.0.3.zip
    inflating: instantclient10_1/classes12.jar
    inflating: instantclient10_1/libclntsh.dylib.10.1
    inflating: instantclient10_1/libnnz10.dylib
    inflating: instantclient10_1/libocci.dylib.10.1
    inflating: instantclient10_1/libociei.dylib
    inflating: instantclient10_1/libocijdbc10.dylib
    inflating: instantclient10_1/ojdbc14.jar
    SQL*PLUS
    Archive: instantclient-sqlplus-macosx-10.1.0.3.zip
    inflating: instantclient10_1/README_IC.htm
    inflating: instantclient10_1/glogin.sql
    inflating: instantclient10_1/libsqlplus.dylib
    inflating: instantclient10_1/sqlplus
    SDK
    Archive: instantclient-sdk-macosx-10.1.0.3.zip
    creating: instantclient10_1/sdk/
    creating: instantclient10_1/sdk/demo/
    inflating: instantclient10_1/sdk/demo/cdemo81.c
    inflating: instantclient10_1/sdk/demo/demo.mk
    inflating: instantclient10_1/sdk/demo/occidemo.sql
    inflating: instantclient10_1/sdk/demo/occidemod.sql
    inflating: instantclient10_1/sdk/demo/occidml.cpp
    creating: instantclient10_1/sdk/include/
    inflating: instantclient10_1/sdk/include/nzerror.h
    inflating: instantclient10_1/sdk/include/nzt.h
    inflating: instantclient10_1/sdk/include/occi.h
    inflating: instantclient10_1/sdk/include/occiAQ.h
    inflating: instantclient10_1/sdk/include/occiCommon.h
    inflating: instantclient10_1/sdk/include/occiControl.h
    inflating: instantclient10_1/sdk/include/occiData.h
    inflating: instantclient10_1/sdk/include/occiObjects.h
    inflating: instantclient10_1/sdk/include/oci.h
    inflating: instantclient10_1/sdk/include/oci1.h
    inflating: instantclient10_1/sdk/include/oci8dp.h
    inflating: instantclient10_1/sdk/include/ociap.h
    inflating: instantclient10_1/sdk/include/ociapr.h
    inflating: instantclient10_1/sdk/include/ocidef.h
    inflating: instantclient10_1/sdk/include/ocidem.h
    inflating: instantclient10_1/sdk/include/ocidfn.h
    inflating: instantclient10_1/sdk/include/ociextp.h
    inflating: instantclient10_1/sdk/include/ocikpr.h
    inflating: instantclient10_1/sdk/include/ocixmldb.h
    inflating: instantclient10_1/sdk/include/odci.h
    inflating: instantclient10_1/sdk/include/oratypes.h
    inflating: instantclient10_1/sdk/include/ori.h
    inflating: instantclient10_1/sdk/include/orid.h
    inflating: instantclient10_1/sdk/include/orl.h
    inflating: instantclient10_1/sdk/include/oro.h
    inflating: instantclient10_1/sdk/include/ort.h
    inflating: instantclient10_1/sdk/include/xa.h
    SETTING ENVIRONMENT VARIABLES
    DYLD_LIBRARY_PATH
    /oracle/instantclient10_1
    TNS_ADMIN
    /oracle/instantclient10_1
    COPYING TNSNAMES.ORA TO INSTANT CLIENT [IC] DIRECTORY
    INSTANT CLIENT [IC] DIRECTORY
    README_IC.htm libocci.dylib.10.1 sdk/
    classes12.jar libociei.dylib* sqlplus*
    glogin.sql libocijdbc10.dylib* tnsnames.ora
    libclntsh.dylib.10.1* libsqlplus.dylib*
    libnnz10.dylib ojdbc14.jar
    SQL*PLUS CONNECTIVITY TEST
    SQL*Plus: Release 10.1.0.3.0 - Production on Fri Aug 19 15:26:08 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
    With the Partitioning, OLAP and Data Mining options
    USER
    SCOTT
    SYSDATE
    19-AUG-05
    TEST_RESULTS
    successful
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
    With the Partitioning, OLAP and Data Mining options
    IF THE SQL*PLUS CONNECTIVITY TEST WAS SUCCESSFUL
    READ SETUP2 TO CONFIGURE AND RUN THE OCI cdemo81.c SAMPLE
    [macosx]/oracle>
    11. Once you have obtained a successful execution of the setup1 script, you are ready to configure cdemo81.c to connect to the database you have configured inside your tnsnames.ora file.
    Open the cdemo81.c file located under the <Instant_Client>/sdk/demo folder. Find the following line of code:
    (void) OCIServerAttach( srvhp, errhp, (text *)"", strlen(""), 0);
    Change the two (2) empty strings to the SERVICE NAME you used in Step 7 above.
    (void) OCIServerAttach( srvhp, errhp, (text *)"ORCL", strlen("ORCL"), 0);
    Save the file.
    12. You are now ready to run cdemo81.c. You MUST issue the following command from the initial directory where you copied all of the files in Step 6:
    [macosx]/oracle> . setup2
    NOTE: Be sure to include the period "." and a space " " before the word "setup2" so all environment variables persist for the current session.
    This script will configure your environment, build and run the OCI sample code connecting to the database specified in the tnsnames.ora file.
    13. Here is the sample output of a successful execution of the setup2 script:
    [macosx]/oracle> . setup2
    MAC OS X INSTANT CLIENT 10g SCRIPT - SETUP2
    TNSNAMES.ORA FILE
    # If you receive an
    # ORA-12154: TNS:could not resolve the connect identifier specified
    # error when running the setup script and attempting to connect to Oracle
    # from SQL*Plus then the name of your SERVICE NAME (i.e. ORCL) may require
    # that you include the DOMAIN (i.e. US.ORACLE.COM) in order to connect successfully.
    # To obtain the DOMAIN of your environment, type "hostname" from your shell
    # and it should report this information back to you. Configure your SERVICE
    # NAME to look like Example 2.
    # Example 1
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = gbednars-pc.us.oracle.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = orcl)
    # Example 2
    #ORCL.US.ORACLE.COM =
    # (DESCRIPTION =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = gbednars-pc.us.oracle.com)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVER = DEDICATED)
    # (SID = orcl)
    USERNAME, PASSWORD AND SERVICE NAME INFO FROM YOUR OCI cdemo81.c FILE
    static text username = (text ) "SCOTT";
    static text password = (text ) "TIGER";
    (void) OCIServerAttach( srvhp, errhp, (text *)"ORCL", strlen("ORCL"), 0);
    REPORTING REQUIRED ENVIRONMENT VARIABLES
    DYLD_LIBRARY_PATH
    /oracle/instantclient10_1
    TNS_ADMIN
    /oracle/instantclient10_1
    CHANGING TO [IC]/SDK/DEMO DIRECTORY
    cdemo81.c* demo.mk occidemo.sql occidemod.sql occidml.cpp
    ATTEMPTING TO RUN APPLICATION
    BUILDING APPLICATION USING PROVIDED MAKE FILE, [IC]/sdk/demo/demo.mk...
    rm -rf SunWS_cache
    rm -rf ../../libclntsh.dylib
    rm -rf ../../libocci.dylib
    rm -rf cdemo81 cdemo81.o occidml occidml.o
    /usr/bin/gcc -c -I../include -I/rdbms/public/ -I/oracore/include -I/oracore/publ
    ic -I/oracore/port/include -I/nlsrtl/include -I/plsql/public -I/plsql/include -I
    /network/public -I/network/include -I/otrace/public -I/otrace/include/ -I/precom
    p/public -I/precomp/include/ -I/slax/include -I/ordts/public -I/ordts/include -I
    /javavm/include -I/javavm/include/osds/unix/solaris -I/ctx/public -I/ordvir/publ
    ic -I/ordvir/include -idirafter . -g -DRE_ENTRANT -DOCCI_NO_WSTRING=1 -DMAC_O
    SX -D_GNU_SOURCE -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -D_BCER
    T_API_ -DRSA_PLATFORM=RSA_PLATFORM_MAC_PPC_DARWIN -DNTEV_USE_POLL -DNTEV_USE_GE
    NERIC -DNET_USE_LDAP -DOCCI cdemo81.c
    ln ../../libclntsh.dylib.10.1 ../../libclntsh.dylib
    ln ../../libocci.dylib.10.1 ../../libocci.dylib
    /usr/bin/g++ -o cdemo81 cdemo81.o -L../../ -locci -lclntsh -lpthread
    rm -rf ../../libclntsh.dylib
    rm -rf ../../libocci.dylib
    /usr/bin/g++ -c -I../include -I/rdbms/public/ -I/oracore/include -I/oracore/publ
    ic -I/oracore/port/include -I/nlsrtl/include -I/plsql/public -I/plsql/include -I
    /network/public -I/network/include -I/otrace/public -I/otrace/include/ -I/precom
    p/public -I/precomp/include/ -I/slax/include -I/ordts/public -I/ordts/include -I
    /javavm/include -I/javavm/include/osds/unix/solaris -I/ctx/public -I/ordvir/publ
    ic -I/ordvir/include -idirafter . -g -DRE_ENTRANT -DOCCI_NO_WSTRING=1 -DMAC_O
    SX -D_GNU_SOURCE -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -D_BCER
    T_API_ -DRSA_PLATFORM=RSA_PLATFORM_MAC_PPC_DARWIN -DNTEV_USE_POLL -DNTEV_USE_GE
    NERIC -DNET_USE_LDAP -DOCCI occidml.cpp
    In file included from ../include/occi.h:43,
    from occidml.cpp:11:
    ../include/occiData.h:411: warning: use of `long double' type; its size may
    change in a future release
    ../include/occiData.h:411: warning: (Long double usage is reported only once
    for each file.
    ../include/occiData.h:411: warning: To disable this warning, use
    -Wno-long-double.)
    ln ../../libclntsh.dylib.10.1 ../../libclntsh.dylib
    ln ../../libocci.dylib.10.1 ../../libocci.dylib
    /usr/bin/g++ -o occidml occidml.o -L../../ -locci -lclntsh -lpthread
    rm -rf ../../libclntsh.dylib
    rm -rf ../../libocci.dylib
    INSTANT CLIENT [IC] DIRECTORY...
    README_IC.htm libocci.dylib.10.1 sdk/
    classes12.jar libociei.dylib* sqlplus*
    glogin.sql libocijdbc10.dylib* tnsnames.ora
    libclntsh.dylib.10.1* libsqlplus.dylib*
    libnnz10.dylib ojdbc14.jar
    CREATING links FOR REQUIRED LIBRARIES IN INSTANT CLIENT [IC] FOLDER...
    - libclntsh.dylib
    - libocci.dylib
    INSTANT CLIENT [IC] DIRECTORY WITH links CREATED...
    README_IC.htm libnnz10.dylib libsqlplus.dylib*
    classes12.jar libocci.dylib ojdbc14.jar
    glogin.sql libocci.dylib.10.1 sdk/
    libclntsh.dylib* libociei.dylib* sqlplus*
    libclntsh.dylib.10.1* libocijdbc10.dylib* tnsnames.ora
    EXECUTING APPLICATION...
    Enter employee name (or CR to EXIT): LARRY
    Enter employee job: CEO
    Enter employee salary: 10000
    Enter employee dept: 40
    LARRY added to the OPERATIONS department as employee number 7974
    Enter employee name (or CR to EXIT):
    Exiting...
    [macosx]/oracle/instantclient10_1/sdk/demo>
    14. If you have any problems running this script please open a Service Request (SR) with Oracle Support for further assistance and be sure to upload the output from the script to the SR.
    ReferencesNote
    332588.1 - How to Install, Configure and Test Oracle 10g Instant Client Basic, SQL*Plus and SDK Packages for Mac OS X (Runs OCCI sample code - occidml.cpp)
    Errors
    ORA-3114 "not connected to ORACLE"
    ORA-24327 need explicit attach before authenticating a user
    ORA-12154 "TNS:could not resolve service name"

  • Trying to Attach Files to an Oracle Database Engine

    My client performed a complete backup of their Oracle folder (Windows). They simply used Windows Explorer by dragging and dropping the folder on to an external drive. Now that I have the files, I need to know how to "attach" them to my local Oracle database engine. I need to do this so that I can add a new Data Connection in Visual Studio. Or, if I login to the database server, I want to see my client's databases.
    Can anyone help me?r

    user9107810 wrote:
    I am used to using SQL Server, which allows you to simply attach database files to a database. I did read some documentation on restoring a database file, but it seemed complicated. Complicated only because you are tying to see it as something it isn't. Please don't take that as a criticism. It's just a statement of fact because you are trying to apply SQL Server thinking to Oracle. Same as trying to apply diesel engine thinking to a gasoline engine.
    I thought that there might be a more straight forward solution.
    SQL Server isn't Oracle ... by any stretch of the imagination. Even the term "database" refers to totally different concepts. What SQL Server calls a 'database', Oracle calls a 'schema' -- and even that is just a rough approximation.
    What you describe in SQL Server sounds a lot like what Oracle would call a 'transportable tablespace', but again that would be an approximation, not an exact one-for-one literal translation.
    Where do I get this information? Do you recommend a book or website?The entire Oracle doc set is at tahiti.oracle.com

  • No connection to an oracle database

    Hello
    I have installed database Rel. 2. JDevelopper 9.0.3.2 with BI Beans 9.0.3.6.
    Additionally I installed the warehouse builder 9.2.0.2.8.
    After I created a repository, a runtime repository and a target schema, I wanted to connect to my Oracle Database. But in the second window when you create a connector I can't choose a database. I can only mark unspecified...
    Does anybody know why???
    Damian

    Yes I tried to use OWB.
    I looked at OTN Documentation
    (Oracle9i Warehouse Builder Installation and Configuration Guide)
    So I installed OWB Design Time with the Installer, then I
    installed the Design Repository using the Repository
    Assistant. In addition I performed the OWB Server Side installation using Oracle Universal Installer. Then I installed a Runtime Repository, a Runtime Access User and a Warehouse Builder Target Schema.
    After this installation I started the OWB Client and connected as Repository User. I received the make a ODBC Connection. But I want also make a connection to my local oracle database within a connector...
    Now in this Printscreen (http://home.datacomm.ch/crettaz/printscreen.jpg) I can't choose my database. I have do configure more things?

  • How can i save the data from the Oracle database to my local directory

    How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
    I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.

    Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
    You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run.

  • How to run local host web application in win 7 64 bit with oracle database?

    Hi all,
    Hope doing well,
    sir i am running my local host web application with oracle database in win 7 32 bit. it's working fine.
    but when i am running the same thing in win 7 64 bit. it's showing login error.
    not going to home page even i checked with this published file open in visual studio it's working fine.
    how to run it correctly?
    thanks in advance.

    The number of times you have been asked to post sufficient details for your questions, we would expect you to have got the message by now... but clearly not.
    952646 wrote:
    but when i am running the same thing in win 7 64 bit. it's showing login error.What error? You haven't posted an error. There are millions of possible errors in computing and you're expecting people to guess which one.
    not going to home page even i checked with this published file open in visual studio it's working fine.
    how to run it correctly?No code, no database version, no details...... = NO HELP.
    When are you going to learn.

  • Problem when connecting locally to Oracle Database 10g from Java code

    Good afternoon,
    I try to connect to my local Oracle 10g from JAVA code. Could somebody tells me what are the 'values' to enter in place of 'value1, value2, value3' in the following:
    final String connectionURLThin = "jdbc:oracle:thin:@value1:value2:value3";
    I tried to put my 'user' and 'pw' credentials I used when connecting with SQL*PLUS:
    value1=my_user_name
    value2=my_pw
    value3=my_schema
    but it doest work. Besides where could have I to put the 'WORKSPACE" name?
    Thanks for any help.
    Claude
    Details:
    ERR MESSAGE----------------------
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:365)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:854)
    at java.sql.DriverManager.getConnection(DriverManager.java:620)
    at java.sql.DriverManager.getConnection(DriverManager.java:200)
    at javaapplication6.ConnectionExample.driverManager(ConnectionExample.java:138)
    at javaapplication6.Main.main(Main.java:36)
    Caused by: java.lang.ClassNotFoundException: oracle.dms.instrument.ExecutionContextForJDBC
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
    ... 8 more
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    ---------------------ERR MESSAGE
    JAVA code------------------it compiles but throw an error when running there -> (*)...
    final String driverClass = "oracle.jdbc.driver.OracleDriver";
    final String connectionURLThin = "jdbc:oracle:thin:@jeffreyh3:1521:CUSTDB";
    final String userID = "scott";
    final String userPassword = "tiger";
    final String queryString = "SELECT" +
    " user " +
    " , TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS') " +
    "FROM dual";
    public void driverManager() {
    Connection con = null;
    Statement stmt = null;
    ResultSet rset = null;
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(connectionURLThin, userID, userPassword); // (*) prob here
    stmt = con.createStatement ();
    rset = stmt.executeQuery(queryString);
    rset.close();
    stmt.close();
    } catch (SQLException e) {e.printStackTrace();
    --------------------JAVA JDK 1.6
    My system ------------------------
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    Yes, the network connection could not be established. Like the error said.
    What you're asking about is the exact reason, but that could be any number of things and not at all related to code. You could have the wrong host, the wrong port. A firewall could be blocking the outgoing connection, a firewall could be blocking the incoming connection. Etc. etc.

  • How use oracle forms with oracle database  in a local computer network(client -server homogenious network)

    Hello experts,             
                         I am new in Oracle forms.I am using oracle forms 11g with weblogic server 10.3.5 and oracle database 11g at windows 7 platform.
    I want to call my oracle forms(main  login form) from different computers(windows7) connected in a local network.My oracle database is installed in a server computer.I am not talking about oracle forms hosting in internet.I want to deploy oracle forms in a local computer network connected via LAN cable or wi-fi.
    thank You.
    regards
    aaditya

    In most cases you can copy the same entry found in the tnsnames.ora file used by the database.  In the database home, the file can be found in \network\admin.  Open the file and you should find something like this:
    yourAlias =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    So in the above, you would need to set the alias (this can be anything you like), the IP address or hostname of the machine where the database is running, the port number used by the db listener, and the service name used by the db.  Most of this will already be set for you if you are copying from the database tnsnames.ora.  So you should be able to just copy and paste.  More information about the tnsnames.ora file can be found in the db documentation:
    http://docs.oracle.com/cd/B28359_01/network.111/b28317/tnsnames.htm

  • Sample Response File for Oracle Database 12c Standard Edition on Oracle Linux 6.4 -- working

    oracle@styles-and-artists-development-oracle database]$ cat response/db_install.rsp
    ## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.##
    ## Specify values for the variables listed below to customize     ##
    ## your installation.                                             ##
    ## Each variable is associated with a comment. The comment        ##
    ## can help to populate the variables with the appropriate        ##
    ## values.                                                        ##
    ## IMPORTANT NOTE: This file contains plain text passwords and    ##
    ## should be secured to have read permission only by oracle user  ##
    ## or db administrator who owns this installation.                ##
    # Do not change the following system generated value.
    oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
    # Specify the installation option.
    # It can be one of the following:
    #   - INSTALL_DB_SWONLY
    #   - INSTALL_DB_AND_CONFIG
    #   - UPGRADE_DB
    oracle.install.option=INSTALL_DB_AND_CONFIG
    # Specify the hostname of the system as set during the install. It can be used
    # to force the installation to use an alternative hostname rather than using the
    # first hostname found on the system. (e.g., for systems with multiple hostnames
    # and network interfaces)
    ORACLE_HOSTNAME=styles-and-artists-development-oracle
    # Specify the Unix group to be set for the inventory directory. 
    UNIX_GROUP_NAME=oracle
    # Specify the location which holds the inventory files.
    # This is an optional parameter if installing on
    # Windows based Operating System.
    INVENTORY_LOCATION=/home/oracle/oracleInventory
    # Specify the languages in which the components will be installed.            
    # en   : English                  ja   : Japanese                 
    # fr   : French                   ko   : Korean                   
    # ar   : Arabic                   es   : Latin American Spanish   
    # bn   : Bengali                  lv   : Latvian                  
    # pt_BR: Brazilian Portuguese     lt   : Lithuanian               
    # bg   : Bulgarian                ms   : Malay                    
    # fr_CA: Canadian French          es_MX: Mexican Spanish          
    # ca   : Catalan                  no   : Norwegian                
    # hr   : Croatian                 pl   : Polish                   
    # cs   : Czech                    pt   : Portuguese               
    # da   : Danish                   ro   : Romanian                 
    # nl   : Dutch                    ru   : Russian                  
    # ar_EG: Egyptian                 zh_CN: Simplified Chinese       
    # en_GB: English (Great Britain)  sk   : Slovak                   
    # et   : Estonian                 sl   : Slovenian                
    # fi   : Finnish                  es_ES: Spanish                  
    # de   : German                   sv   : Swedish                  
    # el   : Greek                    th   : Thai                     
    # iw   : Hebrew                   zh_TW: Traditional Chinese      
    # hu   : Hungarian                tr   : Turkish                  
    # is   : Icelandic                uk   : Ukrainian                
    # in   : Indonesian               vi   : Vietnamese               
    # it   : Italian                                                  
    # all_langs   : All languages
    # Specify value as the following to select any of the languages.
    # Example : SELECTED_LANGUAGES=en,fr,ja
    # Specify value as the following to select all the languages.
    # Example : SELECTED_LANGUAGES=all_langs 
    SELECTED_LANGUAGES=en
    # Specify the complete path of the Oracle Home.
    ORACLE_HOME=/extended2/oracleBase/db12c1
    # Specify the complete path of the Oracle Base.
    ORACLE_BASE=/extended2/oracleBase
    # Specify the installation edition of the component.                    
    # The value should contain only one of these choices.       
    #   - EE     : Enterprise Edition                               
    #   - SE     : Standard Edition                                 
    #   - SEONE  : Standard Edition One
    #   - PE     : Personal Edition (WINDOWS ONLY)
    oracle.install.db.InstallEdition=SE
    # PRIVILEGED OPERATING SYSTEM GROUPS                                          #
    # Provide values for the OS groups to which OSDBA and OSOPER privileges       #
    # needs to be granted. If the install is being performed as a member of the   #
    # group "dba", then that will be used unless specified otherwise below.       #
    # The value to be specified for OSDBA and OSOPER group is only for UNIX based #
    # Operating System.                                                           #
    # The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
    oracle.install.db.DBA_GROUP=osdba
    # The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
    # The value to be specified for OSOPER group is optional.
    oracle.install.db.OPER_GROUP=osoper
    # The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges.
    oracle.install.db.BACKUPDBA_GROUP=bckdba
    # The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges.
    oracle.install.db.DGDBA_GROUP=dbdba
    # The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges.
    oracle.install.db.KMDBA_GROUP=kmdba
    #                               Grid Options                                  #
    # Specify the type of Real Application Cluster Database
    #   - ADMIN_MANAGED: Admin-Managed
    #   - POLICY_MANAGED: Policy-Managed
    # If left unspecified, default will be ADMIN_MANAGED
    oracle.install.db.rac.configurationType=
    # Value is required only if RAC database type is ADMIN_MANAGED
    # Specify the cluster node names selected during the installation.
    # Leaving it blank will result in install on local server only (Single Instance)
    # Example : oracle.install.db.CLUSTER_NODES=node1,node2
    oracle.install.db.CLUSTER_NODES=
    # This variable is used to enable or disable RAC One Node install.
    #   - true  : Value of RAC One Node service name is used.
    #   - false : Value of RAC One Node service name is not used.
    # If left blank, it will be assumed to be false.
    oracle.install.db.isRACOneInstall=
    # Value is required only if oracle.install.db.isRACOneInstall is true.
    # Specify the name for RAC One Node Service
    oracle.install.db.racOneServiceName=
    # Value is required only if RAC database type is POLICY_MANAGED
    # Specify a name for the new Server pool that will be configured
    # Example : oracle.install.db.rac.serverpoolName=pool1
    oracle.install.db.rac.serverpoolName=
    # Value is required only if RAC database type is POLICY_MANAGED
    # Specify a number as cardinality for the new Server pool that will be configured
    # Example : oracle.install.db.rac.serverpoolCardinality=2
    oracle.install.db.rac.serverpoolCardinality=
    #                        Database Configuration Options                       #
    # Specify the type of database to create.
    # It can be one of the following:
    #   - GENERAL_PURPOSE/TRANSACTION_PROCESSING                      
    #   - DATA_WAREHOUSE                               
    oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
    # Specify the Starter Database Global Database Name.
    oracle.install.db.config.starterdb.globalDBName=cbd
    # Specify the Starter Database SID.
    oracle.install.db.config.starterdb.SID=cdb1
    # Specify whether the database should be configured as a Container database.
    oracle.install.db.ConfigureAsContainerDB=true
    # Specify the  Pluggable Database name for the pluggable database in Container Database.
    oracle.install.db.config.PDBName=pdb1
    # Specify the Starter Database character set.
    #  One of the following
    #  AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
    #  EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
    #  BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
    #  AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
    #  IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
    #  KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
    #  ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
    oracle.install.db.config.starterdb.characterSet=AL32UTF8
    # This variable should be set to true if Automatic Memory Management
    # in Database is desired.
    # If Automatic Memory Management is not desired, and memory allocation
    # is to be done manually, then set it to false.
    oracle.install.db.config.starterdb.memoryOption=true
    # Specify the total memory allocation for the database. Value(in MB) should be
    # at least 256 MB, and should not exceed the total physical memory available
    # on the system.
    # Example: oracle.install.db.config.starterdb.memoryLimit=512
    oracle.install.db.config.starterdb.memoryLimit=512
    # This variable controls whether to load Example Schemas onto
    # the starter database or not.
    oracle.install.db.config.starterdb.installExampleSchemas=true
    # Passwords can be supplied for the following four schemas in the             #
    # starter database:                                                           #
    #   SYS                                                                       #
    #   SYSTEM                                                                    #
    #   DBSNMP (used by Enterprise Manager)                                       #
    # Same password can be used for all accounts (not recommended)                #
    # or different passwords for each account can be provided (recommended)       #
    # This variable holds the password that is to be used for all schemas in the
    # starter database.
    oracle.install.db.config.starterdb.password.ALL=CDBadmin12345#
    # Specify the SYS password for the starter database.
    oracle.install.db.config.starterdb.password.SYS=CBDsys12345#
    # Specify the SYSTEM password for the starter database.
    oracle.install.db.config.starterdb.password.SYSTEM=PDBsys12345#
    # Specify the DBSNMP password for the starter database.
    oracle.install.db.config.starterdb.password.DBSNMP=DBsnmp12345#
    # Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database.
    oracle.install.db.config.starterdb.password.PDBADMIN=PDBadmin12345#
    # Specify the management option to use for managing the database.
    # Options are:
    # 1. CLOUD_CONTROL - If you want to manage your database with Enterprise Manager Cloud Control along with Database Express.
    # 2. DEFAULT   -If you want to manage your database using the default Database Express option.
    oracle.install.db.config.starterdb.managementOption=DEFAULT
    # Specify the OMS host to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.omsHost=
    # Specify the OMS port to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.omsPort=
    # Specify the EM Admin user name to use to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.emAdminUser=
    # Specify the EM Admin password to use to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.emAdminPassword=
    # SPECIFY RECOVERY OPTIONS                                                    #
    # Recovery options for the database can be mentioned using the entries below  #
    # This variable is to be set to false if database recovery is not required. Else
    # this can be set to true.
    oracle.install.db.config.starterdb.enableRecovery=true
    # Specify the type of storage to use for the database.
    # It can be one of the following:
    #   - FILE_SYSTEM_STORAGE
    #   - ASM_STORAGE
    oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
    # Specify the database file location which is a directory for datafiles, control
    # files, redo logs.        
    # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
    oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/extended1/db/data
    # Specify the recovery location.
    # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
    oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=/extended1/db/recovery
    # Specify the existing ASM disk groups to be used for storage.
    # Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
    oracle.install.db.config.asm.diskGroup=/dev/oracleasm
    # Specify the password for ASMSNMP user of the ASM instance.                
    # Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
    oracle.install.db.config.asm.ASMSNMPPassword=ASMsnmp122345#
    # Specify the My Oracle Support Account Username.
    #  Example   : [email protected]
    MYORACLESUPPORT_USERNAME=
    # Specify the My Oracle Support Account Username password.
    # Example    : MYORACLESUPPORT_PASSWORD=password
    MYORACLESUPPORT_PASSWORD=
    # Specify whether to enable the user to set the password for
    # My Oracle Support credentials. The value can be either true or false.
    # If left blank it will be assumed to be false.
    # Example    : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
    SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
    # Specify whether user doesn't want to configure Security Updates.
    # The value for this variable should be true if you don't want to configure
    # Security Updates, false otherwise.
    # The value can be either true or false. If left blank it will be assumed
    # to be false.
    # Example    : DECLINE_SECURITY_UPDATES=false
    DECLINE_SECURITY_UPDATES=flase
    # Specify the Proxy server name. Length should be greater than zero.
    # Example    : PROXY_HOST=proxy.domain.com
    PROXY_HOST=
    # Specify the proxy port number. Should be Numeric and atleast 2 chars.
    # Example    : PROXY_PORT=25
    PROXY_PORT=
    # Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
    # blank if your proxy server requires no authentication.
    # Example    : PROXY_USER=username
    PROXY_USER=
    # Specify the proxy password. Leave PROXY_USER and PROXY_PWD 
    # blank if your proxy server requires no authentication.
    # Example    : PROXY_PWD=password
    PROXY_PWD=
    # Specify the proxy realm.
    # Example    : PROXY_REALM=metalink
    PROXY_REALM=
    # Specify the Oracle Support Hub URL.
    # Example    : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
    COLLECTOR_SUPPORTHUB_URL=
    # Specify the auto-updates option. It can be one of the following:
    #   - MYORACLESUPPORT_DOWNLOAD
    #   - OFFLINE_UPDATES
    #   - SKIP_UPDATES
    oracle.installer.autoupdates.option=SKIP_UPDATES
    # In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
    # the updates are to be downloaded.
    # In case OFFLINE_UPDATES option is chosen, specify the location where the updates
    # are present.
    oracle.installer.autoupdates.downloadUpdatesLoc=
    # Specify the My Oracle Support Account Username which has the patches download privileges 
    # to be used for software updates.
    #  Example   : [email protected]
    AUTOUPDATES_MYORACLESUPPORT_USERNAME=
    # Specify the My Oracle Support Account Username password which has the patches download privileges 
    # to be used for software updates.
    # Example    : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
    AUTOUPDATES_MYORACLESUPPORT_PASSWORD=

    This is the simplest installation you can get, but if you want to do a fast response file based installation, there it is.

Maybe you are looking for

  • Will Not Boot Up

    I have a Power Mac G4 2002 Model OS 10.2 When I turn the computer on,everything is ok for a moment,then the fan goes into overdrive (spins rather fast) and the computer will not finish booting up. The screen is blank, and the fan just spins rather fa

  • Problem with Photoshop tutorial

    I'm trying to follow this tutorial here, http://www.layersmagazine.com/photoshop-cs4-a-picture-worth-a-thousand-words.html Which is turning a portrait into a portrait of words, and i'm having a problem with step 9. "9 PASTE INTO A LAYER MASK Show all

  • E65 and CW-7K carkit

    Just replaced my 6230i with the E65. I have a CW-7K carkit, with MBC15 holder. From several discussions here i understand that my initial thought of just replacing the holder with one that fits the E65 can be difficult. My needs are: ( prioritized )

  • Discoverer view change default option

    Hi friends, when connecting to discoverer/plus or viewer. The first screen, we will see "Connect to" and the default for this one is "OracleBI Discoverer" I just wonder if i can hide that option. So anytime when i open discoverer plus it i should not

  • ISight built in flash not working

    I took pictures on the photo booth last week and the built in flash was working just fine.. it would do the countdown and it would brighten up the image. Today, I tried taking a picture and the flash would go off (screen turn bright white) but the im