To verify Oracle native connectivity through a TNS
Note: This account should already be set up. See Create an Account, a Home Directory, and a Login Environment for more information about setting up a UNIX account to use when you install BusinessObjects Enterprise.
This variable contains the path to the root directory of your Oracle client installation (one level above the Oracle bin and lib directories).
The library search path (LD_LIBRARY_PATH on Solaris and Linux, and LIBPATH on AIX) must include the lib32 directory of your Oracle client installation.
The search path must include the bin directory of your Oracle client installation.
This example checks the required variables and shows sample output values.
$ echo $ORACLE_HOME /home/dbclient/oracle/10.1.0.3 $ echo $LD_LIBRARY_PATH /home/dbclient/oracle/10.1.0.3/lib32 $ echo $PATH /usr/local/bin:/home/dbclient/oracle/10.1.0.3/bin
sqlplus accountname/password@tnsname
Replace accountname, password and tnsname with the appropriate values. If the shell environment has been configured correctly, you are connected to Oracle.
Note: The first time you log in with SQL Plus, use sys as the user, then create a new database user. Supply this new user to the BusinessObjects Enterprise installer when it ask for the oracle username, password and tnsname.
create table sampletable (field1 char(10));
drop table sampletable;
CREATE PROCEDURE test_proc (foo_in VARCHAR, bar_in VARCHAR) IS BEGIN INSERT INTO test_table (foo, bar) VALUES (foo_in, bar_in); END;
DROP PROCEDURE TEST_PROC;
|
Copyright © 2010 CA.
All rights reserved.
|
|