Oracle 10gR2 on fedora 9
What is the difference between installation of Oracle 10gR2 on fedora 7 and fedora 9. If anyone know the link for Oracle 10R2 installation on fedora 9 please put here.
What is the difference between installation of Oracle 10gR2 on fedora 7 and fedora 9. If anyone know the link for Oracle 10R2 installation on fedora 9 please put here.The above link really helped me to get out of the problem of failing from prereq check of the OS.
Since fedora 9 was not released during 10gr2 probably it's not supported. But with the url "http://www.puschitz.com/InstallingOracle10g.shtml" just go down find (I do not recommend to execute "runInstaller -ignoreSysPrereqs) key .
All the best
Similar Messages
-
HOW TO RUNNING ORACLE 10gR2 on FEDORA 13
I've finished the installation of oracle 10gR2 on fedora 13 but I could not run any services oracle.
how do I to be able to run my oracle and how to log the user oracle on fedora 13? I am newbie in fedora
thanks,
Ganjarsu: warning: cannot change directory to /opt/oracle/otk/home: No such file or directoryMy first guess: This directory does not exist.
su: /bin/ksh: No such file or directoryThe korn shell is not installed.
Dont get me wrong but why on earth are you installing oracle on fedora which is a completely unsupported platform. In addition to that you dont seem to have enough linux experience to debug/fix this simple errors yourself. Generally speaking this forum is for help but i am getting bored answering posts like "Oracle does not run on <insert unsupported linux distribution here>". On Windows nobody tried to install Oracle 11g R2 on Windows NT to see if it works and asked here for help.
Ronny Egner
My Blog: http://blog.ronnyegner-consulting.de -
Hi,
I have done a bit of search on google and on this forum.
I've tried solutions that work on others but none work on mine.
Here is my problem
I've downloaded the 10201_database_linux_x86_64.cpio file from oracle.
Then
groupadd dba
groupadd oinstall
useradd -c "Oracle Database Owner" -g oinstall -G dba oracle
passwd oracle
mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/10
chown -R oracle.oinstall /opt/oracle
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle
vi /home/oracle/.bash_profile# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11G
export ORACLE_SID=MyData
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
xterm +
su - oracle
./runInstallerand I get
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-12-07_06-36-14PM. Please wait ...
[oracle@localhost database]$ java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Suggestions that I've tried as found on the net are
1) do an export LIBXCB_ALLOW_SLOPPY_LOCK=1
2) sed -i 's/XINERAMA/FAKEEXTN/g' on libmawt.so files
I've seen replies that reported those solutionis work, but I still have the same problem after few attempts.
Please help.
system : Linux localhost 2.6.23.1-49.fc8 #1 SMP Thu Nov 8 22:14:09 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
thanks,You'll find how to install 10g or 11g onto Fedora 8 (and pretty much any other major distro, come to that) at http://dizwell.com/prod/node/695#installation
It's one download of a shell script. A quick chmod. Away you go.
Ah. I just noticed... you're 64-bit. Doris doesn't do 64-bits yet. Come back in about a week, then... (meanwhile you could look at the sheel script to find out how Doris does 32-bit Fedora 8. The same trick will probably work with 64-bits) -
Installation oracle 10gR2 on Fedora 13
im newbie in linux fedora 13
I have followed all the instructions on this website (click here )but there's always an error like this.
i run installation ./runInstaller
and error like this :
[jablai@jablai database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2010-06-17_10-49-58PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
how do I overcome it
thanks..
Edited by: Ganjar on Jun 17, 2010 9:23 AM
Edited by: Ganjar on Jun 17, 2010 9:29 AMA mandatory package is missing:
http://www.ora600.be/node/1816
Werner -
Oracle 10gR2 installation on Linux
Hi,
I have installed Oracle 10gR2 on Fedora 11 in my laptop for personal use and it is working fine.Now i have created another user oradev and i want to control the database form oradev user.When i am issuing the command sqlplus/proc for development work it is showing error
command not foundand when i am issuing the same by giving the full path of sqlplus it is giving some shared library error .
Since the database is in localhost ,it should be available to all OS users and any user can work on the database .
For your information i am able to connect the databse through Enterprise Manager and sqldeveloper but for pro*c Development i need to connect from the console only .
Can anybody tell me to work as the "oracle" user what set up i have to do in" oradev" user so that i can achieve my Requirements.
Regards,
DhabasMost people will advise putting environment variables into your .profile. This is bad advice because it limits the way you can work in the future.
Better is to use the oracle environment configuration program provided by Oracle. It will verify that you do not have conflicting binaries in your path.
To do so, as described in the "Administrator's Reference for UNIX-Based Operating Systems" at http://www.oracle.com/pls/db102/portal.portal_db?selected=3, you SOURCE oraenv.
First, cat /etc/oratab to find out the list of databases. They are at the bottom of the file. The first column will provide the instance SID.
Then, in your terminal (or shell script used for cron, etc) SOURCE oraenv (use dot space oraenv) and tell it the SID you want to use. In a shell script, such as my .bash_profile, I use
ORAENV_ASK=NO
export ORACLE_SID=orcl
. oraenv
unset ORAENV_ASKThe result is that the correct sqlplus for that Oracle Home should now work. -
I'm planning to install Linux & Oracle 10GR2 into my Dell server at home that I bought so I can learn Oracle. Could anyone recommend what Linux should I install work best with Oracle 10GR2 and where should I download for free.
Thanks in advance,
VuThere are Linux distributions which are certified for Oracle SW (Redhat EL, SuSE ES, Asianux) but I think they are not downloadable for free (in full not just eval. vesion).
But there are distributions which you can download for free and there you can run Oracle.
Centos, WhiteBox Linux - there are distributions completely built from original RH EL packages.
I got good experience with Oracle on mainstrem distributions as Fedora and Suse.
Of course these distributions are not certified for Oracle products but Oracle is running fine on them.
But I think you could use whatever of Linux distribution.
Here is link for installation papers&tips http://www.oracle.com/technology/tech/linux/install/index.html
Here is link to site which is tracking almost all Linux distributions and there you can find links for download - http://www.distrowatch.com -
Error while installing Oracle 10g on Fedora Core 1
Error while installing Oracle 10g on Fedora Core 1. After 40% of the Installation is thru, the progress bar is showing 40%, it gives error "Not connected to Oracle" and the installation has to be terminated.
We have tried by using the on-line procedure and changing the required script to make believe it as said.Are you createing DB also???
-
Oracle 10gR2 WebService Call-In & Call-Out via PL/SQL (Step-by-Step Guide)
Hi Everyone,
This guide is for those of you who tried to Call-In and Call-Out WebService via Oracle 10gR2 using PL/SQL but failed a couple of times, re-installed a couple of times and retry, got it to work but don't know what made it work scenarios.
Hope this helps ;-)
Thanks,
Henry Wu
Instructions on how to use Oracle10gR2 Webservice Call-Out feature (Oracle JAX-RPC DII - Dynamic Invocation (DII) APIs)
PREREQUISITE
=================================================================
1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
1.1 Choose Enterprise Edition
2. Download 10.1.3.1 Callout Utility for 10g (R1 +R2) RDBMS (ZIP, ~13MB)
http://download.oracle.com/technology/sample_code/tech/java/jsp/dbws-callout-utility-10131.zip
2.1 Extract to C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131
3. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
3.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
STEP-BY-STEP PROCEDURES
=================================================================
1. Prepare the database
1.1 Connect to SYS account (or any account that can connect as SYSDBA)
1.2 alter system set shared_pool_size=96M scope=both
1.3 alter system set java_pool_size=80M scope=both
1.4 ALTER USER SCOTT ACCOUNT UNLOCK;
1.5 ALTER USER SCOTT IDENTIFIED BY "tiger";
1.6 ALTER USER SCOTT QUOTA UNLIMITED ON USERS;
1.7 GRANT PUBLIC TO SCOTT;
1.8 GRANT Create Public Synonym TO SCOTT;
2. Load Oracle SOAP client to SCOTT (for Oracle 10g Release 2 Database)
2.1 Commands
2.1.1 Open command prompt (cmd.exe)
2.1.2 loadjava -u scott/tiger -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\webservices\lib\soap.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\lib\dms.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\jlib\javax-ssl-1_1.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\servlet.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\mail.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\activation.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\http_client.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\ejb.jar
2.1.3 It will take around 3 minutes and you will see "something" like the following when it completes (count may not be exact) :
Classes Loaded: 909
Resources Loaded: 75
Sources Loaded: 0
Published Interfaces: 0
Classes generated: 0
Classes skipped: 0
Synonyms Created: 984
Errors: 0
2.1.3 Close this command prompt
3. Load Oracle JAX-RPC client to SYS (for Oracle 10g Release 2 Database)
3.1 Commands
3.1.1 Open command prompt (cmd.exe)
3.1.2 loadjava -u sys/oracle -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientws.jar C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientdb102.jar
3.1.2.1 It will take around 15 minutes and you will see "something" like following when it completes (count may not be exact) :
Classes Loaded: 4027
Resources Loaded: 81
Sources Loaded: 0
Published Interfaces: 0
Classes generated: 61
Classes skipped: 0
Synonyms Created: 4108
Errors: 0
3.1.3 Close this command prompt
4. Execute UTL_DBWS packages to SYS (for Oracle 10g Release 2 Database)
4.1 Commands
4.1.1 Connect to SYS account only
4.1.2 Execute the following (in TOAD you should execute them as Script, press the "thunder" button)
4.2.1 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_decl.sql"
4.2.2 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_body.sql"
4.2.3 CREATE PUBLIC SYNONYM utl_dbws FOR sys.utl_dbws;
5. Call-out a free Web Service using SCOTT
5.1 Commands
5.1.1 Connect to user SCOTT with password of TIGER
5.1.2 Copy and Paste the following "Anonymous Block" (sample #1) and execute it :
5.1.2.1 It sould return "PL/SQL DII client return ===> Redwood City"
declare
service_ utl_dbws.SERVICE;
call_ utl_dbws.CALL;
service_qname utl_dbws.QNAME;
port_qname utl_dbws.QNAME;
operation_qname utl_dbws.QNAME;
string_type_qname utl_dbws.QNAME;
retx ANYDATA;
retx_string VARCHAR2(1000);
retx_double number;
retx_len number;
params utl_dbws.ANYDATA_LIST;
l_input_params utl_dbws.anydata_list;
l_result ANYDATA;
l_namespace VARCHAR2(1000);
begin
-- open internet explorer and navigate to http://webservices.imacination.com/distance/Distance.jws?wsdl
-- search for 'targetNamespace' in the wsdl
l_namespace := 'http://webservices.imacination.com/distance/Distance.jws';
-- search for 'service name' in the wsdl
service_qname := utl_dbws.to_qname(l_namespace, 'DistanceService');
-- this is just the actual wsdl url
service_ := utl_dbws.create_service(HTTPURITYPE('http://webservices.imacination.com/distance/Distance.jws?wsdl'), service_qname);
-- search for 'portType name' in the wsdl
port_qname := utl_dbws.to_qname(l_namespace, 'Distance');
-- search for 'operation name' in the wsdl
-- there will be a lot, we will choose 'getCity'
operation_qname := utl_dbws.to_qname(l_namespace, 'getCity');
-- bind things together
call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
-- default is 'FALSE', so we make it 'TRUE'
utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
-- search for 'operation soapAction' under <wsdl:operation name="getCity">
-- it is blank, so we make it ''
utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
-- search for 'encodingstyle' under <wsdl:operation name="getCity">
utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
-- search for 'binding style'
utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
-- search for 'xmlns:xs' to know the value of the first parameter
-- under <wsdl:message name="getCityResponse"> you will see the line <wsdl:part name="getCityReturn" type="xsd:string" />
-- thus the return type is 'string", removing 'xsd:'
string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
-- in the line <wsdl:operation name="getCity" parameterOrder="zip">
-- the parameterOrder is 'zip', thus we put in 'zip'
-- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
-- the 'ParameterMode.IN' is a constant variable in the sys.utl_dbws package
utl_dbws.add_parameter(call_, 'zip', string_type_qname, 'ParameterMode.IN');
utl_dbws.set_return_type(call_, string_type_qname);
-- supply the In Parameter for the web service
params(0) := ANYDATA.convertvarchar('94065');
-- invoke the web service
retx := utl_dbws.invoke(call_, params);
-- access the returned value and output it to the screen
retx_string := retx.accessvarchar2;
dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
-- release the web service call
utl_dbws.release_service(service_);
end;
5.1.3 Copy and Paste the following "Anonymous Block" (sample #2) and execute it :
5.1.3.1 It should return "PL/SQL DII client return ===> twelve thousand three hundred and forty five"
declare
service_ utl_dbws.SERVICE;
call_ utl_dbws.CALL;
service_qname utl_dbws.QNAME;
port_qname utl_dbws.QNAME;
operation_qname utl_dbws.QNAME;
string_type_qname utl_dbws.QNAME;
retx ANYDATA;
retx_string VARCHAR2(1000);
retx_double number;
retx_len number;
params utl_dbws.ANYDATA_LIST;
l_input_params utl_dbws.anydata_list;
l_result ANYDATA;
l_namespace VARCHAR2(1000);
begin
-- open internet explorer and navigate to http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL
-- search for 'targetNamespace' in the wsdl
l_namespace := 'http://www.dataaccess.com/webservicesserver/';
-- search for 'service name' in the wsdl
service_qname := utl_dbws.to_qname(l_namespace, 'NumberConversion');
-- this is just the actual wsdl url
service_ := utl_dbws.create_service(HTTPURITYPE('http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL'), service_qname);
-- search for 'portType name' in the wsdl
port_qname := utl_dbws.to_qname(l_namespace, 'NumberConversionSoap');
-- search for 'operation name' in the wsdl
-- there will be a lot, we will choose 'NumberToWords'
operation_qname := utl_dbws.to_qname(l_namespace, 'NumberToWords');
-- bind things together
call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
-- default is 'FALSE', so we make it 'TRUE'
utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
-- search for 'operation soapAction' under <operation name="NumberToWords">
-- it is blank, so we make it ''
utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
-- search for 'encodingstyle'
-- cannot find xml tag 'encodingstyle', so we just use the following as the generic encoding style
utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
-- search for 'binding style'
-- although 'document' was used, it produced an error, thus we will use 'rpc'
-- this value is generally only 'document' or 'rpc'
utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
-- search for 'xmlns:xs' to know the value of the first parameter
-- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
-- thus the return type is 'unsignedlong', removing 'xs:'
-- however, upon testing, using 'unsignedlong' produced an error, while 'string' did not, so we will use 'string'
string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
-- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
-- the element name is 'ubiNum', thus we put in 'ubiNum'
-- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
-- the 'ParameterMode.IN' is a constant variable in the utl_dbws package
utl_dbws.add_parameter(call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
utl_dbws.set_return_type(call_, string_type_qname);
-- supply the In Parameter for the web service
params(0) := ANYDATA.convertvarchar('12345');
-- invoke the web service
retx := utl_dbws.invoke(call_, params);
-- access the returned value and output it to the screen
retx_string := retx.accessvarchar2;
dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
-- release the web service call
utl_dbws.release_service(service_);
end;
NOTES AND REFERENCES
=================================================================
This detailed step-by-step guide was produced with the following guide http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
I could still not load Oracle JAX-RPC client to SCOTT (step 4) as it produces an error. See the following for more details :
http://forums.oracle.com/forums/thread.jspa?threadID=633219&tstart=0
Also, I could not consume some of the other free Web Services out there for reasons I don't know, hope someone can help clarify. See the following for more details :
http://forums.oracle.com/forums/thread.jspa?threadID=630733&tstart=0
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Instructions on how to use Oracle10gR2 Webservice Call-In feature
PREREQUISITE
=================================================================
1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
1.1 Choose Enterprise Edition
2. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
2.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
STEP-BY-STEP PROCEDURES
=================================================================
1. Connect to SYS account and create user STORE
CREATE USER store IDENTIFIED BY store;
GRANT connect, resource TO store;
2. Connect to Oracle using the user STORE and password STORE
CONNECT store/store;
3. Execute the following objects for this excercise
CREATE SEQUENCE order_sq;
CREATE TABLE product_types (
product_type_id INTEGER
CONSTRAINT product_types_pk PRIMARY KEY,
name VARCHAR2(10) NOT NULL
CREATE TABLE products (
product_id INTEGER
CONSTRAINT products_pk PRIMARY KEY,
product_type_id INTEGER
CONSTRAINT products_fk_product_types
REFERENCES product_types(product_type_id),
name VARCHAR2(30) NOT NULL,
description VARCHAR2(50),
price NUMBER(5, 2)
CREATE TABLE customers (
customer_id INTEGER
CONSTRAINT customers_pk PRIMARY KEY,
first_name VARCHAR2(10) NOT NULL,
last_name VARCHAR2(10) NOT NULL,
dob DATE,
phone VARCHAR2(12)
CREATE TABLE orders (
order_id INTEGER
CONSTRAINT orders_pk PRIMARY KEY,
product_id INTEGER
CONSTRAINT purchases_fk_products
REFERENCES products(product_id),
customer_id INTEGER
CONSTRAINT purchases_fk_customers
REFERENCES customers(customer_id),
quantity INTEGER NOT NULL
INSERT INTO customers (
customer_id, first_name, last_name, dob, phone
) VALUES (
1, 'John', 'Brown', '01-JAN-1965', '800-555-1211'
INSERT INTO product_types (
product_type_id, name
) VALUES (
1, 'Book'
INSERT INTO products (
product_id, product_type_id, name, description, price
) VALUES (
1, 1, 'Modern Science', 'A description of modern science', 19.95
COMMIT;
CREATE OR REPLACE PACKAGE dbfunc AS
FUNCTION place_order (
p_product_id INTEGER,
p_customer_id INTEGER,
p_quantity INTEGER
RETURN VARCHAR2;
END dbfunc;
CREATE OR REPLACE PACKAGE BODY dbfunc AS
FUNCTION place_order (
p_product_id INTEGER,
p_customer_id INTEGER,
p_quantity INTEGER
RETURN VARCHAR2 IS
v_customer_count INTEGER;
v_product_count INTEGER;
v_order_id INTEGER;
BEGIN
-- count the number of products with the
-- supplied p_product_id (should be 1 if the product exists)
SELECT COUNT(*)
INTO v_product_count
FROM products
WHERE product_id = p_product_id;
IF v_product_count = 0 THEN
RETURN 'No such product';
END IF;
-- count the number of customers with the
-- supplied p_customer_id (should be 1)
SELECT COUNT(*)
INTO v_customer_count
FROM customers
WHERE customer_id = p_customer_id;
IF v_customer_count = 0 THEN
RETURN 'No such customer';
END IF;
-- get the next value from orders_sq
SELECT order_sq.nextval
INTO v_order_id
FROM dual;
-- place the order
INSERT INTO orders (
order_id, product_id, customer_id, quantity
) VALUES (
v_order_id, p_product_id, p_customer_id, p_quantity
COMMIT;
RETURN 'Order placed with id of ' || v_order_id;
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
RETURN 'Order not placed';
END place_order;
END dbfunc;
4. Install and Configure OC4J
4.1 Change Directory
4.1.1 Open command prompt (cmd.exe)
4.1.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\bin
4.2 Configure Environment variables (type in command prompt)
4.2.1 set JAVA_HOME=C:\oracle\product\10.2.0\db_1\jdk
4.2.2 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
4.3 Starting OC4J for the first time
4.3.1 oc4j -start
4.3.2 If this is not your first time to "start" oc4j, go to step 4.3.4
4.3.3 Set oc4jadmin password (use the password "oracle" w/o the quotation marks)
08/03/21 17:13:54 Set OC4J administrator's password (password text will not be displayed as it is entered)
Enter password:
Confirm password:
Confirm password: The password for OC4J administrator "oc4jadmin" has been set.
08/03/21 17:14:01 The OC4J administrator "oc4jadmin" account is activated.
4.3.4 OC4J has started if you see the message :
08/03/21 17:14:16 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
4.3.5 Leave this command prompt open
4.4 Configure Data Source
4.4.1 Open a new command prompt via the cmd.exe command
4.4.2 type "hostname" and then press enter
4.4.3 Keep this command prompt open for later use
4.4.4 Open Windows Explorer and navigate to the folder C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
4.4.5 Open the file data-sources.xml
4.4.6 Modify and Save the file so that it will look something like the following :
4.4.6.1 Note that "hpv2710us" is my hostname found in step 4.4.2
4.4.6.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
<connection-pool name="Example Connection Pool">
<connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
user="store"
password="store"
url="jdbc:oracle:thin:@//hpv2710us:1521/ORCLDEV">
</connection-factory>
</connection-pool>
4.4.7 Close the text editor
4.4.8 Close the Windows Explorer
4.4.9 Close this command prompt (type exit)
5. Publishing a PL/SQL Package as a Database Web Service
5.1 Create the config.xml file
5.1.1 Open Notepad.exe
5.1.2 Copy and Paste the following :
5.1.2.1 Note that "hpv2710us" is my hostname found in step 4.4.2
5.1.2.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
<web-service>
<display-name>PLSQL Web Service</display-name>
<description>PLSQL Sample</description>
<destination-path>./dbfunc.ear</destination-path>
<temporary-directory>/tmp</temporary-directory>
<context>/plsqlsample</context>
<stateless-stored-procedure-java-service>
<jar-generation>
<schema>store/store</schema>
<db-url>jdbc:oracle:thin:@hpv2710us:1521:ORCLDEV</db-url>
<prefix>db.func.place.order</prefix>
<db-pkg-name>dbfunc</db-pkg-name>
</jar-generation>
<uri>/dbfunc</uri>
<database-JNDI-name>jdbc/OracleDS</database-JNDI-name>
</stateless-stored-procedure-java-service>
<wsdl-gen>
<wsdl-dir>wsdl</wsdl-dir>
<option name="force">true</option>
<option name="httpServerURL">http://localhost:8888</option>
</wsdl-gen>
<proxy-gen>
<proxy-dir>proxy</proxy-dir>
<option name="include-source">true</option>
</proxy-gen>
</web-service>
5.1.3 Save file as config.xml in the directory C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
5.1.3.1 Note it should be config.xml and not config.txt
5.1.4 Close the text editor
5.2 Publish dbfunc Oracle Package as a Web Service
5.2.1 Open a new command prompt via the cmd.exe command
5.2.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home
5.2.3 mkdir ear
5.2.4 CD ear
5.2.5 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
5.2.6 set CLASSPATH=.;%ORACLE_HOME%\webservices\lib\wsdl.jar;%ORACLE_HOME%\lib\xmlparserv2.jar;%ORACLE_HOME%\soap\lib\soap.jar
5.2.7 java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config\config.xml
Please wait ...
STORE.DBFUNC
5.2.8 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -deploy -file C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\ear\dbfunc.ear -deploymentName dbfunc
08/03/21 17:46:23 Notification ==>Application Deployer for dbfunc COMPLETES. Operation time: 296 msecs
5.2.9 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindWebApp -appname dbfunc -webModuleName dbfunc_web
5.2.10 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindAllWebApps -appname dbfunc
5.2.11 Close this command prompt (type exit)
6. Test dbfunc Web Service
6.1 Restart OC4J
6.1.1 Open the command prompt you used to start OC4J in step 4.1.1/4.3.1
6.1.2 In the keyboard, hit Ctrl+C
6.1.2.1 Type "Y" and then hit Enter
08/03/21 18:02:51 Shutting down OC4J...
Terminate batch job (Y/N)? Y
6.1.2.2 Note that the command prompt should still be open
6.1.2.2.1 If you accidentally closed the command prompt just do the following
6.1.2.2.1.1 Do 4.1.1 to 4.2.2 and then proceed to 6.1.3
6.1.3 oc4j -start
Starting OC4J from C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home...
08/03/21 18:07:57 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
6.1.4 Leave this command prompt open
6.2 Use the Web Service to "Order an Item"
6.2.1 Connect to Oracle using the user STORE and password STORE
6.2.2 select * from orders
6.2.2.1 Zero row should return
6.2.3 Open Internet Explorer
6.2.4 Navigate to http://localhost:8888/plsqlsample/dbfunc
6.2.5 Input the following :
6.2.5.1 param0 value: 1
6.2.5.2 param1 value: 1
6.2.5.3 param2 value: 10
6.2.6 Click the Invoke button
6.2.7 A pop-up window will appear having the following contents :
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <ns1:placeOrderResponse xmlns:ns1="http://db.func.place.order/dbfunc.wsdl" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:string">Order placed with id of 1</return>
</ns1:placeOrderResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
6.2.8 Go back to SQLPLUS or Toad and execute "select * from orders" again
6.2.8.1 There should be one row
ORDER_ID, PRODUCT_ID, CUSTOMER_ID, QUANTITY
1, 1, 1, 10
NOTES AND REFERENCES
=================================================================
This detailed step-by-step guide was produced with the following article by Jason Price http://www.oracle.com/technology/pub/articles/price_10gws.htmlSuccess!!!
I had to grant this permissions:
call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );
call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' );
call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'setFactory', '' )
call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' );
call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', 'localhost', 'resolve' );
call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', '127.0.0.1:8084', 'connect,resolve' );
As I wrote earlier, WS_TEST is my user into which I load JAX-RPC client. Note that, if you load JAX-RPC client into user another than SYS, you have NOT to use -s -grant public option (wassam wrote about this too). Another thing is that I (finally) didn't load OC4J. To consume WebService I use utl_dbws.invoke(call_Handle CALL, request SYS.XMLTYPE) function.
voytec001 -
Oracle 10gR2 installation problem on Solaris (sparc-64 bit)
Hi All,
I am unable to install Oracle 10gR2 on Solaris, I cannot understand what is wrong could u anybody help me that,
Regards
Harpreet SinghI also have a similar problem, when I insert the key in my car sometimes it does not start. I cannot understand what is wrong could you help me?
Otherwise, It's been raining lately and our crystal ball's are somewhat foggy; therefore we cannot guess what is you problem. -
Installing Oracle Linux on Fedora Core (formerly Red Hat)
Hello,
I am very new to Linux having been a recent Windows convert and wanted to find out whether I can talk to someone about installing Oracle on a Fedora Core system. I find the current documentation to be quite daunting for a newbie like me. I am not new to Oracle per se but I am new to installing it on a different operating system. It's also easier for me to chat about my issues than to do a long-winded e-mail. If there is a "guru" in this area that can contact me, I can be reached at 305-491-0417 (cell) or e-mail me at [email protected]
Much appreciated and Thanks,
SteveHello
Here is a very good guide:
http://www.puschitz.com/OracleOnLinux.shtml
lajos -
JRE not found, while installing Oracle 9i on Fedora Core 5
I am installing Oracle 9i on Fedora Core 5 from the following site.
http://ivan.kartik.sk/oracle/install_ora9_fedora.html
The site asks me to Download the Java Runtime Enviroment (j2re-1_3_1_15-linux-i586.bin) from the Sun website.
extract the file and put it in /opt directory. And edit Disk1/install/linux/oraparam.ini and modify JRE_LOCATION variable to /opt/jre1.3.xx
I have downloaded JRE version jre1.3.1_19 as this is the version available from the sun site, and put it in the /opt directory.
[oracle@localhost Disk1]$ cd /opt
[oracle@localhost opt]$ ls -l
total 24
drwxr-xr-x 6 root root 4096 Aug 19 2006 jre1.3.1_19
My oraparam.ini settings are:
[oracle@localhost ~]$ cat Disk1/install/linux/oraparam.ini
[Oracle]
JRE_LOCATION=/opt/jre1.3.1_19
However, after doing these changes when I use /home/oracle/Disk1/runInstaller, i get the following error:
[oracle@localhost Disk1]$ pwd
/home/oracle/Disk1
[oracle@localhost Disk1]$ ./runInstaller
[oracle@localhost Disk1]$ The Java RunTime Environment was not found at /tmp/OraInstall2008-04-29_07-09-15AM/jre/bin/java. Hence, the Oracle Universal Installer cannot be run.
Please visit http://www.javasoft.com and install JRE version 1.3.1 or higher and try again.
: No such file or directoryIvan Kartik:
I have installed Oracle 9i on Fedora 5.
I am able to login using sqlplus 'sys/sys as sysdba'
and start the database using startup
However, there were problems starting Configuration Assistant services and HTTP Server.
Here are the details:
Launched configuration tool Agent Configuration Assistant
Command which is being spawned is /opt/oracle/920/JRE/bin/jre -classpath /opt/oracle/920/JRE/lib/rt.jar:/opt/oracle/920/jlib/srvm.jar:/opt/oracle/920/network/agent/agentca.jar oracle.agent.AgentCA /orahome /opt/oracle/920 /nodeinfo NO_VALUE
Configuration tool Agent Configuration Assistant failed
Parameter "orahome" = /opt/oracle/920
Parameter "nodeinfo" = NO_VALUE
Agent Service Failed
Result code for launching of configuration tool is 1
Launched configuration tool Starting HTTP Server
Command which is being spawned is /opt/oracle/920/Apache/Apache/bin/apachectl startssl
Invalid Exit Code. The following result code will be used for configuration tool: 1
Configuration tool Starting HTTP Server failed
/opt/oracle/920/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
/opt/oracle/920/Apache/Apache/bin/apachectl startssl: httpd could not be started
Result code for launching of configuration tool is 1
Launched configuration tool Agent Configuration Assistant
Command which is being spawned is /opt/oracle/920/JRE/bin/jre -classpath /opt/oracle/920/JRE/lib/rt.jar:/opt/oracle/920/jlib/srvm.jar:/opt/oracle/920/network/agent/agentca.jar oracle.agent.AgentCA /orahome /opt/oracle/920 /nodeinfo NO_VALUE
Configuration tool Agent Configuration Assistant failed
Parameter "orahome" = /opt/oracle/920
Parameter "nodeinfo" = NO_VALUE
Agent Service Failed -
JRE Error : while Install oracle 10gR2 on Windows Server 2003
Hello,
I am trying to install a Oracle 10gR2 on windows server 2003.
I have unziped the files and when I run the oui.exe it gives the below error:
cannot find any matches for wildcard specification "../stage/components/oracle.swd.jre/1.5.0.0./1/DataFiles/*.jar
Error : JRE missing in Scratch Path
I tried changing the oraparmaini file but it did not allow to make any changes.
Not sure if its looking for any particular java files.
What should i edit ,to specify the java location.
ThanksWhat exactly did you unzip? This error occurs if there are several zip-files extracted to different target locations. But - if I remember correctly - 10gR2 database is only one zip-file, so you should not face this issue. JRE for OUI is part of the downloaded software,so you don't need to specify a location for JRE, OUI knows where to find this.
Werner -
Installation of oracle 10gR2 on Windows Vista Home Premium 64 bit OS
can we install oracle 10gR2 on Windows Vista Home Premium 64 bit OS ???
While doing sqlplus from command prompt,
it's giving error like
'SP2-1503 Unable to initialise Oracle Call interface'
'SP2-0152 Oracle may not be functioning Properly'
How to troubleshoot the above errors,
Has anybody tried it ???
Plz assist.No Oracle product is certified against any Windows Home OS.
As Vista was released after Oracle 10gR2, 10gR2 is not certified against any edition of Vista.
You need to downgrade to XP, or install Linux.
Sybrand Bakker
Senior Oracle DBA -
Installation of Oracle 10g on Fedora 9
OK,
I need to install Oracle 10g R2 on fedora 9 OS.
I have already tried 10201_database_linux32.zip, but it seems its not compatible with Fedora 9 as it says
os version must be redhat -3, suse-9, redhat-4, unitedlinux-1,asianux-1 or asian ux-2
Can anyone guide me with the proper installable of Oracle compatible with Fedora 9 and install instructions?
Thanks in AdvanceTry using the doris script available here: http://dizwell.com/2008/05/01/doris-redux/
Does the job in one command, and hides your operating system specifics from the Oracle installer while it does it.
There's even a video of it being used here: http://dizwell.com/2008/09/29/proving-a-point/ Even though that's of 11g on Fedora 9, the script says it works for 10g on Fedora 9 in the same way. I haven't done that myself, but the site owner says he has, so you should be OK. -
XQuery performance in Oracle 10gR2
Hello
I'm actually trying to measure the performances of XQuery FLOWR queries on Oracle 10gR2. For that, I've created a simple table with one integer field (ID) and one XMLType field. This XMLType field contains 10000 documents. The size of these documents varies between 2Kb and 14Kb approximately.
A simple XQuery like below (without "WHERE" or complexe "RETURN" clause) runs quite well and I get the query results in a resonable time.
SELECT xtab.COLUMN_VALUE
FROM contractXDraft, XMLTABLE(
'declare namespace ctxCD="contractX/contractXDraft";for $x in /ctxCD:contractXDraft
return
<response>
Hello
</response>'
PASSING OBJECT_VALUE) xtab;
On the other hand, if a add a "WHERE" clause to filter the results, the query execute time become very long (~hours...) and I must always abort the query execution by killing the "oracle" process because the page file memory used by this process increase linearly ! Here below is represented a such query :
SELECT xtab.COLUMN_VALUE
FROM contractXDraft, XMLTABLE(
'declare namespace ctxCD="contractX/contractXDraft";for $x in /ctxCD:contractXDraft
where $x/ctxCD:ReferenceDetails/ctxCD:ContractHeaderDetails/ctxCD:ContractNumber = "19163-contract657-2.xml"
return
<response>
Hello
</response>'
PASSING OBJECT_VALUE) xtab;
These above queries are executed on a server dedicated for these tests. This server is a Pentium IV 3.2 GHz with 1GB of RAM and Windows 2003 Server Enterprise SP1 is installed on it.
I want to know if someone can give me an explanation about this huge difference of execution time between the two queries above ?? Is it a syntax mistake ? Is it an hardware problem ?
Thank you very much for your help !!
Regards
MDMD,
Sounds like your XMLType field is using unstructured storage (i.e., LOB-based) instead of the structured storage (i.e., O-R based). You can check out the XML DB online doc (http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb01int.htm#BABECDCF) to learn more about the differences between the two. Essentially, without any associated indexes, using XQuery over unstructured storage will result in a full table scan, which can be very slow when there are large number of rows.
Regards,
Geoff
Maybe you are looking for
-
SAFARI DOES NOT DISPLAY PDF DOCS.
Does anyone know why my Safari browser suddenly does not show PDF docs in the browser window? It used to. I use Version 2.04. A message does appear that says "plug-in cancelled". I don't know why. Acrobat opens it in Firefox fine, but nothing happens
-
Error in mru internal routine: ORA-20001: while updating tabular report
Hi, I am new to APEX.. I am getting the following error when updating a tabular updateable report when I change the query that was created using the wizard. Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current
-
Xilisoft Video Converter Ultim
Hi, I have a CL Zen Vision: M 30GB with the latest EU firmware and am using v5.0.60 build 0625 to convert some videos that the Creative Media Toolbox Video Converter will not handle and am wondering if anyone has some tips on the best settings to use
-
Hello, I have a pdf scanned from a xerox workcentre 7535. I just want to rotate it and save it in the new rotated view. I rotated it and did save as to new file name. When I open it, it is not rotated as I had saved it! Adobe Acrobat XI standard ver
-
Matrix report with Multiple queries
I have created one cross product group containing 4 subgroups under a single query. Now I have another one query seperately to be joined with the matrix query. Also I have one formula column and summary column with this the cross product group. The l