Can I create Oracle Database using Java ???

HI ...
Can I create a Database using Java... ? If yes can any one tell me how ? I mean provide some codeing help... ???

If you mean a table yes, since the create table statement is exactly that, an SQL statement, if you mean an SID then I would have to say (AFAIK) no.

Similar Messages

  • How to create sql database using java frame or appelet?

    hi ! i am working on database project i want to create a database using java frame or applet where it asks user to select the location for database to be created , after user have specified the path then the programs creates the database, again i want that database to be read and write by another frame or applet but as user select the path how do i make the connectivity. i just have basic knowledge on java. please give me idea how can i process further.
    thanks a lot

    While duffymo is correct in regard to most major database products, it's my understanding (warning! wild-ass guess coming) that the Hypersonic DB is more "application-centric" and the dynamic creation of databases is part of its design. It's pure Java database software, and therefore is not appropriate for all database projects, in particular those that require extremely high-performance.
    See http://hsqldb.org/
    I've not used it yet (but soon though), and I can't really advise anyone about it.
    However, I'm wondering if you phrased you question in a way that is confusing us. To most of us in casual conversation, a "database" is both (1) a large organized collection of data and (2) the software that is used to organize and access it. However, the phrase "create a database" usually means creating a (1) database (a collection of data) using an already created (2) database software, such as Oracle, MySQL, DB2, HSQDB, etc., etc. If you'r question is, how do a create some new database software using Java, the answer is that this is a very very big and hard thing to do for the general case and probably not something you want to be doing.

  • How To Store pdf or doc file in Oracle Database using Java Jdbc?

    can any one help me out How To Store pdf or doc file in Oracle Database using Java Jdbc in JSP/Serlet? i tried like anything. using blob also i tried. but i am able 2 store images in DB not files. please if u know or else if u have some code like this plz send that to me, and help me out plz. i need that urgent.

    Hi.. i am not getting error, But i am not getting the original contents from my file. i am getting all ASCII vales, instead of my original data. here i am including my code.
    for Adding PDF in DB i used image.jsp
    Database table structure (table name. pictures )
    Name Null? Type
    ID NOT NULL NUMBER(11)
    IMAGE BLOB
    <%@ page language="java" import="java.util.*,java.sql.*,java.io.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    try{
         Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
         PreparedStatement ps,pstmt,psmnt;
         ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
    File file =
    new File("D:/info.pdf");
    FileInputStream fs = new FileInputStream(file);
    ps.setInt(1,4);
    ps.setBinaryStream(2,fs,fs.available());
    int i = ps.executeUpdate();
    if(i!=0){
    out.println("<h2>PDF inserted successfully");
    else{
    out.println("<h2>Problem in image insertion");
    catch(Exception e){
    out.println("<h2>Failed Due To "+e);
    %>
    O/P: PDF inserted successfully
    i tried to display that pdf using servlet. i am giving the code below.
    import java.io.IOException;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class DispPDF extends HttpServlet {
         * The doGet method of the servlet. <br>
         * This method is called when a form has its tag value method equals to get.
         * @param request the request send by the client to the server
         * @param response the response send by the server to the client
         * @throws ServletException if an error occurred
         * @throws IOException if an error occurred
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              //response.setContentType("text/html"); i commented. coz we cant use response two times.
              //PrintWriter out = response.getWriter();
              try{
                   InputStream sPdf;
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                        Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
                        PreparedStatement ps,pstmt,psmnt;
                   psmnt = con.prepareStatement("SELECT image FROM pictures WHERE id = ?");
                        psmnt.setString(1, "4"); // here integer number '4' is image id from the table.
                   ResultSet rs = psmnt.executeQuery();
                        if(rs.next()) {
                   byte[] bytearray = new byte[1048576];
                        //out.println(bytearray);
                        int size=0;
                        sPdf = rs.getBinaryStream(1);
                        response.reset();
                        response.setContentType("application/pdf");
                        while((size=sPdf.read(bytearray))!= -1 ){
                        //out.println(size);
                        response.getOutputStream().write(bytearray,0,size);
                   catch(Exception e){
                   System.out.println("Failed Due To "+e);
                        //out.println("<h2>Failed Due To "+e);
              //out.close();
    OP
    PDF-1.4 %âãÏÓ 2 0 obj <>stream xœ+är á26S°00SIá2PÐ5´1ôÝ BÒ¸4Ü2‹ŠKüsSŠSŠS4C²€ê P”kø$V㙂GÒU×713CkW )(Ü endstream endobj 4 0 obj <>>>/MediaBox[0 0 595 842]>> endobj 1 0 obj <> endobj 3 0 obj <> endobj 5 0 obj <> endobj 6 0 obj <> endobj xref 0 7 0000000000 65535 f 0000000325 00000 n 0000000015 00000 n 0000000413 00000 n 0000000168 00000 n 0000000464 00000 n 0000000509 00000 n trailer <<01b2fa8b70ac262bfa939cc786f8770c>]/Root 5 0 R/Size 7/Info 6 0 R>> startxref 641 %%EOF
    plz help me out.

  • How to create a database using Java?

    Hi there..
    I'm a student who is currently studying IT and was asked to do a project based on database but create using Java.. since i'm a beginner..i was wondering whether is it possible to do that?
    and if it is possible.. can you kindly show me a sample of code on how to start the project...
    thank you
    yours sincerely,
    Shafini

    While duffymo is correct in regard to most major database products, it's my understanding (warning! wild-ass guess coming) that the Hypersonic DB is more "application-centric" and the dynamic creation of databases is part of its design. It's pure Java database software, and therefore is not appropriate for all database projects, in particular those that require extremely high-performance.
    See http://hsqldb.org/
    I've not used it yet (but soon though), and I can't really advise anyone about it.
    However, I'm wondering if you phrased you question in a way that is confusing us. To most of us in casual conversation, a "database" is both (1) a large organized collection of data and (2) the software that is used to organize and access it. However, the phrase "create a database" usually means creating a (1) database (a collection of data) using an already created (2) database software, such as Oracle, MySQL, DB2, HSQDB, etc., etc. If you'r question is, how do a create some new database software using Java, the answer is that this is a very very big and hard thing to do for the general case and probably not something you want to be doing.

  • Set up DB Connection Pool for Oracle DataBase Using Java App Server8

    Hi,
    In the Admin Console of Java App Server 8, I tried to create a connection pool for the oracle database. I chose Resource Type to be "javax.sql.ConnectionPoolDataSource" and the Vendor is Oracle. So the Data Source Class Name is filled by the system to be "oracle.jdbc.pool.OracleConnectionPoolDataSource". Now, I set up the class path to point to the database driver class "sun.jdbc.odbc.JdbcOdbcDriver" and also the to the Data Source Class Name. Also I set up the JVM options in the console. Restart the server, and then try to ping to the database, but get the error:
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: No suitable driver
    I don't understand what else I should do and why this error is coming?
    Please help me out.
    Thank you
    Regards,
    Sarah

    Hi,
    I've already solve the problem. I did the following:
    set the Url to be: jdbc:oracle:thin:@hostname:port:SID
    set username
    set password
    add oracle.jdbc.drivers.OracleDriver into the JVM options -Djdbc.drivers
    restart the server
    test the connection
    it works :)

  • Can i create a sequence using java?

    Hi,
    I have a problem here.
    I have to update records to my oracle9i database.
    One of the fields in my tables has to be auto number, meaning whenever i add records to this table, this fields will automatically be updated jus like a counter.
    I am told that i could do this by writing a sequence. can any1 help me out?
    Thanks a million!

    To create a sequence in Oracle you can use this (with SCHEMA being replaced by whatever Schema that you are adding the Sequence to)...
    CREATE SEQUENCE SCHEMA.SEQUENCEGENERATOR
    START WITH 1 INCREMENT BY 1 MINVALUE 1 CACHE 20 NOCYCLE NOORDER ;
    From a stored procedure or java code you could
    then use the following to get the next available number
    SELECT SEQUENCEGENERATOR.nextval INTO v_record_id from dual;
    This may or may not work for your needs. Everytime the Select statement is executed a number will be "used". As an alternative you could use something like .... Select Max(number) from Table (this could be table that contains your "auto number" or a seperate support table.

  • Can not create i.war using java -jar ords.war static

    C:\glassfish4\ords>java -jar ords.war static "c:\app\sybrandb\apex_4.2.6\apex\im
    ages"
    WAR Generation complete
    WAR location     : C:\glassfish4\ords\i.war
    Context path     : /i
    Static resources : c:\app\sybrandb\apex_4.2.6\apex\images
    Ensure the static resources are available at path: c:\app\sybrandb\apex_4.2.6\ap
    ex\images
    on the server where the WAR is deployed
    I downloaded ORDS from OTN yesterday
    Needless to say this directory does exist (it works when I run the listener standalone, providing this path)
    Why is everything which Oracle releases in this area always broken and badly documented?
    HELP!
    Sybrand Bakker
    Senior Oracle DBA

    To create the manifest, you use the constructor
    JarOutputStream(OutputStream out, Manifest man).
    However, I am having problems with creation of my files and I came here to look for answers. No .war file i have created has been deployable.

  • How to create a oracle database by java code?

    how to create a oracle database by java code?
    please give some ways then that way's code

    I'm not sure what you mean with "database". Do you mean an Oracle instance or an Oracle user/schema (probably the latter, because that's the equivalent to a MS SQL Database).
    Creating an instance is definitely not possible from within Java. To create a new user this should be possible, as this can be done with SQL:
    GRANT connect,resource TO <newuser> IDENTIFIED BY <password>;
    I'm always cautious with questions like this. In 90% of the cases there is something wrong with the initial design. Creating a database shouldn't be something the application is doing.
    Thomas

  • How can i start oracle databases? i am using Oracle 8.1.6 for linux.

    when i run dbstart,it gives me following message:
    Database "ora4cweb" warm started.
    but when i use sqlplus,it says:
    ORA-01034: ORACLE not available
    i made a mistake ,i shutdown my linux before i shutdown oracle databases,how can i start oracle databases now?thanks in advance.

    try it without the scripts...
    login to linux as oracle
    start server manager
    svrmgrl
    connect internal
    startup
    select sysdate from dual;if that works
    exitcheck listener
    lsnrctl
    statif nothing running type
    start
    exitnull

  • How do you query Oracle RDF database using Java program?

    Does anyone know how to get data out of the oracle RDF database using Java?
    I'm running the following java code and it returns basically null values. My guess is that the get_triple() function returns a dataset other than resultset. I've tried searching the Oracle web site. Am I supposed to be using CLOB object? Any help would be appreciated. Thanks
    sql = "SELECT a.triple.GET_TRIPLE() AS triple FROM family_rdf_data a";
    ResultSet rs = stmt.executeQuery( sql ) ;
    while ( rs.next() )
    System.out.println( rs.getString(1) ) ;
    rs.close() ;

    get_triple() returns an object, and the code would be different from the code of retrieving a string. Some sample code for retrieving objects is at http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.html
    get_subject(), get_property() return strings so the code below should work. get_object() returns a CLOB so different handling would be required and there is some sample code at the link above.
    Melli

  • How to create an Oracle DATABASE through Java Programming Language.. ?

    How to create an Oracle DATABASE through Java Programming Language.. ?

    Oracle database administrators tend to be control freaks, especially in financial institutions where security is paramount.
    In general, they will supply you with a database, but require you to supply all the DDL scripts to create tables, indexes, views etc.
    So a certain amount of manual installation will always be required.
    Typically you would supply the SQL scripts, and a detailled installation document too.
    regards,
    Owen

  • How to restore a mysql dump file to database using java

    hai friends,
    i'm developing an application. in that i need to back up and restore the database. i'm using mysql.
    in that i used a code to back up the db.. its working perfectly and the dump file is created perfectly..
    but while trying to restore the dump file nothing is happening...
    can anyone provide me a sample code to restore the dump to database using java code...
    thanks in advance...

    The first, biggest mistake you made in the code is that you didn't read standard output and error from the process, and/or you're ignoring exceptions. Because if you did, you would have read error messages that would have given you a clue what's wrong. (either that, or you ignored the clues, or didn't understand them and failed to tell us what the error messages are)
    The second mistake is that you invoked exec with the call that takes a single string, when that string includes whitespace not used as delimiters.
    The third mistake was that you used a terrible subject line for your post. Your problem is that you're having trouble with Runtime.exec. The fact that it's about mysql isn't relevent.
    The fourth mistake is that you didn't mention Runtime.exec at all until pushed. You should provide these details. When you try to self-diagnose something that you don't understand, and then hide information, you're just wasting everybody's time, including your won.
    The fifth mistake is that you're using poor spelling.
    The sixth mistake is that you still haven't said why you're doing this in Java.

  • How to connect oracle database using DSN  from jsp

    hello, can any know how can i connect to[b] oracle database using DSN name from jsp .I am using oracle 9i and Tomcat 5
    Using odbc tool i have created the dsn name but ithe connection does not make .here is the code that i have tried
    Connection connection = null;
         try
              Class.forName("oracle.jdbc.driver.OracleDriver");
         catch(ClassNotFoundException Exception)
              out.println("error occoured during loading the driver ");
         try
              out.println("getting the connection");
              connection = DriverManager.getConnection("jdbc:oracle:deepak","scott","tiger");
              out.println("connection getted");
         catch(Exception exception1)
              out.println("error occoured ");
    pls help as soon as possible
    Sorry, for my english

    you are actually using JDBC so the DSN entry does not matter.
    2 things.
    Make sure that your oracle database driver is in your classpath on your tomcat server.
    I.E. copy the file classes12.jar into your common/lib folder of tomcat, or into your WEB-INF/lib folder of your application. and RESTART your server. classes12.jar can be found on the internet or more easily somewhere within your oracle installation. just search for it.
    Make sure your jdbc url is correct. I believe it goes like this.... fill in the blacks
    connection conn = DriverManager.getConnection("jdbc:oracle:thin:scott/tiger@MyOracleHost:1521:MyDB");Note how the username are passed in the first string there fore there is no need to pass additional parameters. This method may be depriciated, but if so, just take out the user and pass from the string and continue to pass them as 3 seperate strings.
    connection conn = DriverManager.getConnection("jdbc:oracle:thin:MyOracleHost:1521:MyDB","scott","tiger");That should get your connection. if not, post your errors.

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

  • Can we have oracle database and gateway for SLQServer on same machine

    Can we install oracle database and Gateway for sQLServer on same machine>?
    If yes, How does the listener files in gateway home (EG: C:\product\11.2.0\NETWORK\ADMIN) and oracle home (EG: C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN) look like?
    Where will we give dg4msql details in tnsnames and listner files?

    Here is the output of starting both the listeners. This is output when i appended listener1 settings in Oracle_home listener.ora file.
    C:\Users\Administrator>lsnrctl start listener
    LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 03-DIC-2012 04:46
    :15
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Avvio di tnslsnr: attendere...
    TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Production
    Il file dei parametri di sistema Þ C:\app\Administrator\product\11.2.0\dbhome_1\
    network\admin\listener.ora
    Messaggi di log registrati in C:\app\Administrator\diag\tnslsnr\WIN-77CAQGHJSA2\
    listener\alert\log.xml
    Ascolto su: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    Connessione a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521
    STATO del LISTENER
    Alias listener
    Versione TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Data di inizio 03-DIC-2012 04:46:20
    Tempo di attivitÓ 0 giorni 0 ore 0 min. 5 sec.
    Livello trace off
    Sicurezza ON: Local OS Authentication
    SNMP OFF
    File di parametri listenerC:\app\Administrator\product\11.2.0\dbhome_1\network\a
    dmin\listener.ora
    File di log listener C:\app\Administrator\diag\tnslsnr\WIN-77CAQGHJSA2\list
    ener\alert\log.xml
    Summary table degli endpoint di ascolto...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Summary table dei servizi...
    Il servizio "test" ha 1 istanze.
    L'istanza "test", stato UNKNOWN, ha 1 handler per questo servizio...
    Il comando Þ stato eseguito
    C:\Users\Administrator>lsnrctl start listener1
    LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 03-DIC-2012 04:46
    :23
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Avvio di tnslsnr: attendere...
    TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Production
    Il file dei parametri di sistema Þ C:\app\Administrator\product\11.2.0\dbhome_1\
    network\admin\listener.ora
    Messaggi di log registrati in D:\product\11.2.0\tg_2\diag\tnslsnr\WIN-77CAQGHJSA
    2\listener1\alert\log.xml
    Ascolto su: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    Connessione a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1522
    STATO del LISTENER
    Alias listener1
    Versione TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Data di inizio 03-DIC-2012 04:46:29
    Tempo di attivitÓ 0 giorni 0 ore 0 min. 5 sec.
    Livello trace off
    Sicurezza ON: Local OS Authentication
    SNMP OFF
    File di parametri listenerC:\app\Administrator\product\11.2.0\dbhome_1\network\a
    dmin\listener.ora
    File di log listener D:\product\11.2.0\tg_2\diag\tnslsnr\WIN-77CAQGHJSA2\li
    stener1\alert\log.xml
    Summary table degli endpoint di ascolto...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522)))
    Summary table dei servizi...
    Il servizio "dg4msql" ha 1 istanze.
    L'istanza "dg4msql", stato UNKNOWN, ha 1 handler per questo servizio...
    Il comando Þ stato eseguito
    C:\Users\Administrator>sqlplus /nolog
    SQL*Plus: Release 11.2.0.2.0 Production on Lun Dic 3 04:46:34 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> conn system/Manager1@star
    Connesso.
    SQL> create public database link test2 connect to "sa" identified by "pwd"
    using 'dg4msql';
    Creato database link.
    SQL> select count(*) from prefer@test2;
    select count(*) from prefer@test2
    ERRORE alla riga 1:
    ORA-28545: errore diagnosticato da Net8 durante la connessione a un agente
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: precedente 2 lines da TEST2
    Output of tnsping from oracle_home
    C:\Users\Administrator>tnsping dg4msql
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 03-DIC-2
    012 05:01:28
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    File di parametri utilizzati:
    C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    ╚ stato utilizzato l'adattatore TNSNAMES per risolvere l'alias
    Tentativo di contattare (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522)) (CONNECT_DATA = (SERVICE_NAME = dg4msql)) (HS=OK))
    OK (0 msec)
    tnsnames.ora file at D:\product\11.2.0\tg_2\NETWORK\ADMIN
    dg4msql =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA = (SERVICE_NAME = dg4msql))
    (HS=OK)
    C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN
    LISTENER_test=
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    dg4msql =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA = (SERVICE_NAME = dg4msql))
    (HS=OK)
    test=
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = test)
    )

Maybe you are looking for

  • VFO3 display invoice is showing product cost - What is RISK and Benefit. How to stop.

    We've stumbled upon an existing Risk where users who have access to VF03 (Display Invoice) can see product cost by selecting Accounting Documents and PA documents (Value Field = Stock Value). The VPRS must remain as the copa stock value.  The issue i

  • IChat Auto Accept Chats?

    Can i get iChat to auto accept calls from only me, which ever remote username i am using? i see it auto accepts but only me. i am the only one i nthe buddy list so is that a way? is it safe that if i dont allow anyone else to join my buddy list then

  • Changed jpegs in camera raw but not changed.

    Does one have to run a batch on these? When I open them in preview, they are not adjusted or changed, even though they were altered in camera raw. thanks.

  • Please can someone tell me why I am getting this error?

    I want to call a method (setSquare()) when a JLabel is clicked by the user, the following code should work: *private void grid11MouseClicked(java.awt.event.MouseEvent evt) {* setSquare(); But I get this error, please can someone tell me what this mea

  • Quantity Variance block for Invoice

    Hi All, In one scenario I have ordered 27,000KG Materials for 90 per 1000 KG.I did the GR for whole quanity( 27,000 ). But while doing Invoice I booked for 27 KG as quantity and amount as 2430. Instead of 27,000 KG i did booked Invoice for 27KG with