1. Become superuser.
2. Add the script to the /etc/init.d directory.
# cp filename /etc/init.d
# chmod 0744 /etc/init.d/filename
# chown root:sys /etc/init.d/filename
3. Create links to the appropriate rcn.d directory.
# cd /etc/init.d
# ln filename /etc/rc2.d/Snnfilename
# ln filename /etc/rcn.d/Knnfilename
4. Use the ls command to verify that the script has links in the specified
directories.
# ls /etc/init.d/ /etc/rc2.d/ /etc/rcn.d/
Run Levels and Boot Files (Tasks) 117
Example: Adding a Run Control Script
# cp xyz /etc/init.d
# cd /etc/init.d
# ln xyz /etc/rc2.d/S100xyz
# ln xyz /etc/rc0.d/K100xyz
# ls /etc/init.d /etc/rc2.d /etc/rc0.d
where the package is call calc and the function is called pricecp...
SQL> variable x number;
SQL> begin
2 :x := calc.pricecp (23, 'LCL', '1-apr-98', '1-apr-99');
3 end;
4 .
SQL> /
PL/SQL procedure successfully completed.
SQL> print x
X
----------
-4.4776119
Context.PROVIDER_URL = localhost
Context.INITIAL_CONTEXT_FACTORY =
org.jnp.interfaces.NamingContextFactory
Manifest-Version: 1.0:
Created-By: 1.3.0 (Sun Microsystems Inc.)
Class-Path: jdom.jar vfc-all.jar
(or any other jar, path to these jars' can also be set, eg, lib/vfc-all.jar)
// findByMethodObjectId(String objectId);
SELECT OBJECT(x) FROM PlutoObject x WHERE x.objectId = ?1
// Object is the ejb collection of entities
// PlutoObject is the entity name
// ?1 is the first parameter in the java method
// x is the table/entity alais
// findByObjectIdAndStatus(String objectId, String status)
SELECT OBJECT(x) FROM PlutoObject x WHERE x.objectId = ?1 AND x.status = ?2
SELECT OBJECT(s) FROM Shortcut s WHERE s.targetId = ?1
CREATE OR REPLACE PROCEDURE "SA"."UPDATE_FUND_SHORT_NAME"
(in_fund_id IN number, in_new_short_name IN varchar2)
AS
BEGIN
UPDATE FUND
SET SHORT_NAME = in_new_short_name
WHERE FUND_ID = in_fund_id;
commit;
END;
Context.PROVIDER_URL = t3://localhost:7001
Context.INITIAL_CONTEXT_FACTORY =
weblogic.jndi.WLInitialContextFactory
Create a shortcut and put this in it:
%windir%\notepad.exe 'C:\WINDOWS\system32\drivers\etc\hosts'
(saves the open 'with..' everytime)
Subscribe to
Posts [Atom]