Use a database as JNDI directory?
With our application, all of the settings now live in a plain old INI file and would like to move them to live in the database, along with the rest of the data supporting our application.
I know that I can use JNDI to locate the database itself, and that would be the first step in launching the application. What I would then like to do is use JNDI against the database to pull out our application settings.
Is there an SPI that lets you go through JDBC to access JNDI data?
Hi David,
Wouldn't you just use the JDBC interfaces to access the DB directly? Or, you could find a way to store this config data into the LDAP and use JNDI as an accessor directly.
Out of curiosity, are there any security implications for your configuration data? If your configuration data affects important security aspects of the system -- trust, passwords, etc., -- are there any implications of moving the data from a local, protected file to a distant database? In particular, if you need to have confidentiality (that is, the config data includes access passwords that should not be revealed on the network) you might go with LDAP since it does support SSL transport.
Of course, you will need to still have some configuration data locally so that you can access the proper database with the proper user identity....
Hope that helps.
Ken Gartner
Quadrasis, Inc (We Unify Security, www -dot- quadrasis -dot- com)
Similar Messages
-
Woes wiring up an ejb to use a database control
first my question & then background:
how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
here's the scene:
i created a java page flow from a database control & this works correctly, but i also need to be able to expose some of the functionality to another deployed application. this application, incidentally is not a workshop application; but rather is a hand-coded war.
the first application (a workshop app) renders forms that use a database control to persist the data. it only uses one table & therefore, there is only one pojo. as i mentioned, this resides in web project & works correctly. i abstracted my dbcontrol & my pojo to a separate java controls project & built this as a library. the jpf still has no problems seeing the dbcontrol.
there is a second application (a non workshop app) that needs to be able to use a method provided by the dbcontrol. i created an ejb in a third project in the first application that makes the call to dbcontrol in the exact same way that the jpf did. but i am finding, however, that the dbcontrol is null whenever the ejb makes the call to it's method.
here's the more detailed design:
i started with a database control. i mapped to my datasource, wrote out the sql for the methods i wanted & generated the pageflow from this. i rewrote the pageflow/jsps to suit my needs & everything just works. i did notice at the time that i generated the page flow that the dbcontrol was never instantiated. here is a snippet of the jpf:
<pre>
public class SiteAlertMessageManagementController extends PageFlowController {
* This is the control used to generate this pageflow
* @common:control
private SiteAlertMessageDBControl dbControl;
public Forward getCurrentMessage() {
SiteAlertMessage currentMessage = dbControl.getCurrentMessage();
</pre>
because SiteAlertMessageDBControl is an interface, i assumed that the '@common:control' annotation told weblogic what it needed to know in order to instantiate a runtime class of time SiteAlertMessageDBControl. because it just worked, i never questioned this.
with the form read/write functionality complete, i assumed i could quickly wrap an ejb around the dbcontrol method & be done with it. i soon realized that i could not create an ejb inside a web project & that an ejb project would not have classpath visibility to my dbcontrol & pojo, so i put the dbcontrol & the pojo into a java control project & made a library out of this. i double checked that the web project could see the classes in the library & they could.
so i created a separate ejb project that also could now see the classes in the library. i thought i was in the home stretch. i now have these projects in my first application:
administrationControls, administrationWeb, & administrationEjb. i moved the administrationControls.jar & the administrationEjb.jar over to the WEB-INF/lib directory of my (remember: non-workshop) war & wired up the code to pull the bean off jndi tree to make the rmi call. but it didn't work. so i backtracked & created a new jsp back in my workshop project that would make the same rmi call so that i could use the debugger. with this as the background, here is my specific problem.
what i noticed is that the ejb code itself works correctly. i guess i should show it as well.
<pre>
public class SiteAlertMessagesAPI extends GenericSessionBean implements SessionBean {
* This is the control used to generate this pageflow
* @common:control
private SiteAlertMessageDBControl dbControl;
public void ejbCreate() {
// Your code here
* @ejbgen:remote-method
public SiteAlertMessage getCurrentMessage() throws Exception {
SiteAlertMessage message = null;
try {
// dbControl is null here
message = dbControl.getCurrentMessage();
catch (Exception e) {
e.printStackTrace();
return message;
</pre>
the problem is that my dbControl object is null. what i did was cut & paste the code from the jpf over to my bean. like i stated earlier, i assumed that the annotation would tell weblogic to instantiate an instance. this was obviously not the case. incidentally, i rewrote my ejbCreate() method like this:
<pre>
public void ejbCreate() {
// Your code here
dbControl = new SiteAlertMessageDBControl();
</pre>
but workshop gives me a "error: this type is abstract and thus cannot be instantiated" warning.
my question is: how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
any light you could shed on this would be most appreciated. thanks,
dougHi,
unfortunatly, it's not possible to use a control outside a control or a
web service...
Emmanuel
douglas thomas a ?crit :
first my question & then background:
how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
here's the scene:
i created a java page flow from a database control & this works correctly, but i also need to be able to expose some of the functionality to another deployed application. this application, incidentally is not a workshop application; but rather is a hand-coded war.
the first application (a workshop app) renders forms that use a database control to persist the data. it only uses one table & therefore, there is only one pojo. as i mentioned, this resides in web project & works correctly. i abstracted my dbcontrol & my pojo to a separate java controls project & built this as a library. the jpf still has no problems seeing the dbcontrol.
there is a second application (a non workshop app) that needs to be able to use a method provided by the dbcontrol. i created an ejb in a third project in the first application that makes the call to dbcontrol in the exact same way that the jpf did. but i am finding, however, that the dbcontrol is null whenever the ejb makes the call to it's method.
here's the more detailed design:
i started with a database control. i mapped to my datasource, wrote out the sql for the methods i wanted & generated the pageflow from this. i rewrote the pageflow/jsps to suit my needs & everything just works. i did notice at the time that i generated the page flow that the dbcontrol was never instantiated. here is a snippet of the jpf:
<pre>
public class SiteAlertMessageManagementController extends PageFlowController {
* This is the control used to generate this pageflow
* @common:control
private SiteAlertMessageDBControl dbControl;
public Forward getCurrentMessage() {
SiteAlertMessage currentMessage = dbControl.getCurrentMessage();
</pre>
because SiteAlertMessageDBControl is an interface, i assumed that the '@common:control' annotation told weblogic what it needed to know in order to instantiate a runtime class of time SiteAlertMessageDBControl. because it just worked, i never questioned this.
with the form read/write functionality complete, i assumed i could quickly wrap an ejb around the dbcontrol method & be done with it. i soon realized that i could not create an ejb inside a web project & that an ejb project would not have classpath visibility to my dbcontrol & pojo, so i put the dbcontrol & the pojo into a java control project & made a library out of this. i double checked that the web project could see the classes in the library & they could.
so i created a separate ejb project that also could now see the classes in the library. i thought i was in the home stretch. i now have these projects in my first application:
administrationControls, administrationWeb, & administrationEjb. i moved the administrationControls.jar & the administrationEjb.jar over to the WEB-INF/lib directory of my (remember: non-workshop) war & wired up the code to pull the bean off jndi tree to make the rmi call. but it didn't work. so i backtracked & created a new jsp back in my workshop project that would make the same rmi call so that i could use the debugger. with this as the background, here is my specific problem.
what i noticed is that the ejb code itself works correctly. i guess i should show it as well.
<pre>
public class SiteAlertMessagesAPI extends GenericSessionBean implements SessionBean {
* This is the control used to generate this pageflow
* @common:control
private SiteAlertMessageDBControl dbControl;
public void ejbCreate() {
// Your code here
* @ejbgen:remote-method
public SiteAlertMessage getCurrentMessage() throws Exception {
SiteAlertMessage message = null;
try {
// dbControl is null here
message = dbControl.getCurrentMessage();
catch (Exception e) {
e.printStackTrace();
return message;
</pre>
the problem is that my dbControl object is null. what i did was cut & paste the code from the jpf over to my bean. like i stated earlier, i assumed that the annotation would tell weblogic to instantiate an instance. this was obviously not the case. incidentally, i rewrote my ejbCreate() method like this:
<pre>
public void ejbCreate() {
// Your code here
dbControl = new SiteAlertMessageDBControl();
</pre>
but workshop gives me a "error: this type is abstract and thus cannot be instantiated" warning.
my question is: how do i wire up an ejb to use a database control jcx object so that the dbcontrol is instantiated at runtime?
any light you could shed on this would be most appreciated. thanks,
doug -
How can i use diffrent database for same file in same project?
I want to use two database. First normal environment, second for budget. Second copy from first environment. For example 1. database name = "MRP" , 2. database name = "MRPBUDGET".When program is start, users can select database. My question how can i use which selected database name in program.
Thanks a lot for your help,Hi giri,
I test it. When i change
cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum");
cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum1");
in SessionBean1.java
i run it. But this page of project is open explorer it didn't change sun-web.xml and web.xml in projetct directory(line
<resource-ref>
<res-ref-name>jdbc/mysql_dogum</res-ref-name>
<jndi-name>jdbc/mysql_dogum</jndi-name>
</resource-ref>
When i close this page of project from explorer , i clean and build project and then find in project "dogum1", i saw true value in sun-web.xml and web.xml. Project is running true.
How can i change xml file when project running. Can i use drop down list for database name(which change run time)
Thanks, -
How to use JDBC database connection in Solaris
Hi all,
I am new to Solaris and i want to create an application using JDBC database connection.
I want a small piece of code, probably a login page code that verifies the username from a OpenOffice database (.odb) file. I am particular to know the driver name, etc. If possible give the code using JNDI loopkup.
Thanks in advance,
Parasou.Sure no problem.
Please stand by while I do your work for you. -
HR Reporing Payroll using Logical Database PNPCE
Hi ALL
Can any body explain me how can we do HR Payroll reporing using logical database PNPCE.
In the program attibutes as mentioned we need to scee 900 for payroll reporting, but when I use PNPCE I cant see that screen in the Dropdown.
can any body help me with this.
regards
AJcheck this program..
REPORT ZHR_PAYROLL_EX1
MESSAGE-ID ZZ
LINE-SIZE 132
LINE-COUNT 64(2)
NO STANDARD PAGE HEADING .
T A B L E S *
TABLES : PA0001 , "Infotype 0001
PCL1, "HR Cluster 1
PCL2, "HR Cluster 2
T549A, "Payroll Accounting Areas
T549Q. "Payroll Periods
I N C L U D E S *
*--Standard Include for US Payroll
INCLUDE RPC2RUU0. "Cluster RD data definition
INCLUDE RPC2CD00. "Cluster CD Data-Definition
INCLUDE RPC2CA00. "Cluster CA Data-Definition
INCLUDE RPC2RX00. "Cluster RF data definition internat. part
INCLUDE RPPPXD00. "Data definition buffer PCL1/PCL2
INCLUDE RPPPXD10. "Common part buffer PCL1/PCL2
INCLUDE RPPPXM00. "Buffer handling routine
INTERNAL TABLES
*Internal Table to Hold data from PA0001
DATA : BEGIN OF I_0001 OCCURS 0,
PERNR LIKE PA0001-PERNR, "Personnel Number
END OF I_0001.
*Internal Table to Hold data from PA0001
DATA : BEGIN OF I_FINAL OCCURS 0,
PERNR LIKE PA0001-PERNR, "Personnel Number
GAMNT LIKE PC207-BETRG, "Gross Amount
NTAMT LIKE PC207-BETRG, "Net Amount
PAYDT LIKE PC261-PAYDT, "Pay Date
RUNDT LIKE PC261-RUNDT, "Run Date
VORNA LIKE PA0002-VORNA, "First Name
NACHN LIKE PA0002-NACHN, "Last Name
END OF I_FINAL.
*Internal Table to Hold data from PA0002
DATA : BEGIN OF I_0002 OCCURS 0,
PERNR LIKE PA0002-PERNR, "Personnel Number
VORNA LIKE PA0002-VORNA, "First Name
NACHN LIKE PA0002-NACHN, "Last Name
END OF I_0002.
Control record type
TYPES : BEGIN OF T_T569V,
ABKRS LIKE T569V-ABKRS, "Personnel Area
PABRJ LIKE T569V-PABRJ, "Accounting year
PABRP LIKE T569V-PABRP, "Accounting period
STATE LIKE T569V-STATE, "Status of Control Record
ADRUN LIKE T569V-ADRUN, "HR: Special payroll run
END OF T_T569V.
STRUCTURES
DATA : WA_T569V TYPE T_T569V. " Work area for t569v
DATA
DATA : V_PABRJ LIKE T569V-PABRJ, "Accounting year
V_PABRP LIKE T569V-PABRP, "Accounting period
V_BEGDA LIKE SY-DATUM, "Begin Date
V_ENDDA LIKE SY-DATUM, "End Date
V_FPPER(6) TYPE C, "For Period
V_SEQNR LIKE PC261-SEQNR. "Sequence Number
SELECTION SCREEN
Selectio Screen Block for Employee Selection.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_PERNR FOR PA0001-PERNR, "Pernr
S_DATE FOR SY-DATUM. "Date
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION
START-OF-SELECTION.
*Get Data from pa0001
PERFORM GET_DATA_FROM_0001.
*Get Data from pa0001
PERFORM GET_DATA_FROM_0002.
*Get CHAD Details
PERFORM GET_PAYDATA.
END-OF-SELECTION
END-OF-SELECTION.
IF NOT I_FINAL[] IS INITIAL.
*Print the Final Report.
PERFORM PRINT_REPORT.
ENDIF.
T O P O F P A G E
TOP-OF-PAGE.
Display Header
PERFORM DISPLAY_HEADER.
S U B - R O U T I N E S
*& Form get_data_from_0001
Get Data from 0001
FORM GET_DATA_FROM_0001.
SELECT PERNR "Personnel Number
FROM PA0001
INTO TABLE I_0001
WHERE PERNR IN S_PERNR AND
ENDDA >= S_DATE-LOW AND
BEGDA <= S_DATE-HIGH .
IF SY-SUBRC = 0.
SORT I_0001 BY PERNR.
ENDIF.
ENDFORM. " get_data_from_0001
*& Form get_data_from_0002
Get Data from 0002
FORM GET_DATA_FROM_0002.
SELECT PERNR "Personnel Number
VORNA
NACHN
FROM PA0002
INTO TABLE I_0002
WHERE PERNR IN S_PERNR AND
ENDDA >= S_DATE-LOW AND
BEGDA <= S_DATE-HIGH .
IF SY-SUBRC = 0.
SORT I_0002 BY PERNR.
ENDIF.
ENDFORM. " get_data_from_0002
*& Form populate_chad_coinage_table
text
FORM GET_PAYDATA.
LOOP AT I_0001.
READ TABLE I_0002 WITH KEY PERNR = I_0001-PERNR BINARY SEARCH.
IF SY-SUBRC = 0.
I_FINAL-VORNA = I_0002-VORNA.
I_FINAL-NACHN = I_0002-NACHN.
ENDIF.
Read Result Directory for Payroll Results for a Employee.
PERFORM CU_READ_RGDIR.
Get Sequence Number & Associated Payroll Results.
PERFORM GET_PAYROLL_RESULTS.
ENDLOOP.
ENDFORM. " get_paydata
*& Form cu_read_rgdir
Reag rgdir to get the results with conty grouping 'TD'
FORM CU_READ_RGDIR.
DATA : V_MOLGA LIKE T500L-MOLGA ."Country Grouping
*Call function module to get Results
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR = I_0001-PERNR
IMPORTING
MOLGA = V_MOLGA
TABLES
IN_RGDIR = RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
SORT RGDIR BY SEQNR.
ENDFORM. " cu_read_rgdir
*& Form get_payroll_results
Get Sequence number
FORM GET_PAYROLL_RESULTS.
LOOP AT RGDIR WHERE SRTZA = 'A' AND
VOID IS INITIAL AND
REVERSAL IS INITIAL AND
OUTOFSEQ IS INITIAL AND
PAYDT IN S_DATE.
V_SEQNR = RGDIR-SEQNR.
*-- Macro Call for Germany
RP-INIT-BUFFER.
RX-KEY-PERNR = I_0001-PERNR.
RX-KEY-SEQNO = V_SEQNR.
RP-IMP-C2-RU.
LOOP AT RT WHERE LGART = '/559'.
I_FINAL-PERNR = I_0001-PERNR.
I_FINAL-GAMNT = RT-BETRG.
I_FINAL-PAYDT = RGDIR-PAYDT.
I_FINAL-RUNDT = RGDIR-RUNDT.
APPEND I_FINAL.
CLEAR I_FINAL.
ENDLOOP.
ENDLOOP.
ENDFORM. "get_payroll_results
*& Form display_header
Display Header
FORM DISPLAY_HEADER .
FORMAT COLOR 1.
ULINE.
WRITE:/1 SY-VLINE,
(15) 'Empl Number',
SY-VLINE,
(20) 'First Name',
SY-VLINE,
(20) 'Last Name',
SY-VLINE,
(15) 'Pay Date',
SY-VLINE,
(15) 'Run Date',
SY-VLINE,
(25) 'Gross Amount',
132 SY-VLINE.
ULINE.
FORMAT COLOR OFF.
ENDFORM. " display_header
*& Form print_report
Display Report
FORM PRINT_REPORT .
LOOP AT I_FINAL.
WRITE:/1 SY-VLINE,
(15) I_FINAL-PERNR,
SY-VLINE,
(20) I_FINAL-VORNA,
SY-VLINE,
(20) I_FINAL-NACHN,
SY-VLINE,
(15) I_FINAL-PAYDT,
SY-VLINE,
(15) I_FINAL-RUNDT,
SY-VLINE,
(25) I_FINAL-GAMNT,
132 SY-VLINE.
ULINE.
ENDLOOP.
SKIP 2.
WRITE:/1 'Period Begin Date:',(25) V_BEGDA.
WRITE:/1 'Period End Date:',(25) V_ENDDA.
ENDFORM. " print_report -
Facing Problem In Using Oracle Database Cloud Backup Service
Hi Everyone,
I m trying to use Oracle Database Backup Service, for this i have done the following as mentioned in the documentation.
http://www.oracle.com/technetwork/database/features/availability/twp-oracledatabasebackupservice-2183633.pdf
1.Downloaded the opc_installer from otn and unzipped.
2. Executed the following statement from command prompt
java -jar opc_install.jar -serviceName myService -identityDomain myDomain
-opcId [email protected] -opcPass myPassword -configFile "C:\Oracle\OPC\conf"
-walletDir "C:\Oracle\OPC\wallet" -libDir "C:\Oracle\OPC\lib"
Using my credentials, servicename , identitydomain in the above statement.
Download Complete message appears.
3. Connects to RMAN and configure channel for sbt by passing this.
configure channel device type sbt parms
'SBT_LIBRARY=C:\Oracle\OPC\lib\oraopc12.dll
ENV=(OPC_PFILE=C:\Oracle\OPC\conf\conf.txt)';
4.To test the installation i executed the given statement "backup device type sbt current controlfile;"
Starting backup at 31-MAY-14
RMAN-00571:
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
RMAN-00571:
RMAN-03002: failure of backup command at 05/31/2014 04:41:44
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
OSD-01400: Message 1400 not found; product=RDBMS; facility=SOSD
(OS 7110)
ORA-19511: Error received from media manager layer, error text:
SBT error = 7110, errno = 1400, sbtinit: internal error - invalid argument(s)
Getting the following error.
My database version is 11g 11.2.0.3 and is installed in windows server 2008.
Please help to resolve the error.
Looking for your help.
RegardsHi,
Could you try the following command ? Seems like some dependent Windows DLL is not being loaded..
sbttest foo -libname <abs-path-of-directory>\oraopc12.dll
This will output the reason why oraopc12.dll can't be loaded.
Thanks -
Try to use Mysql database with forte
Dear All:
As title said, I try to use Mysql database with forte.
I read the manual , it said I have to put the database jdbc driver in
the Forte for Java lib/ext directory.
I did it and then add a new Driver in the Runtime tab in the Explorer
window .
But when I try to test this new driver(by Right-clicking on the driver
or connection in the Explorer and select Test Driver from the context
menu),it said "cannot find driver class: check your CLASSPATH or
\lib\ext direectory".
I am sure I'hve put the driver class(with the whole directory structure)
in that folder.
Does anyone what I may go wrong ?
Could you please give me some advices that I can fix this problem ?
Thanks in advance.
Ken @ Taipei , Taiwan , AsiaYou should have put the jar file that contains the driver into that directory. If you unpacked the jar file and put the individual classes into that directory, it will not work.
-
Standby database with different directory structure
Hi,
sorry to say that we are in desupported version due to some constraint.
oracle version : 8.1.7.0.0.
os:sun 5.9
I need to create physical standby database with different directory structure:
i have created standby database with same directory structure of primary, now i have requirement to create with different directory structure.
in oracle 8i we can not give multiple parameter for db_file_name_convert(ORA-01678: parameter db_file_name_convert must be two strings, a pattern and a replacement) and i do have partitions in primary as follows:
bash-2.05$ df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 20G 14G 5.6G 72% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 11G 40K 11G 1% /var/run
dmpfs 11G 0K 11G 0% /dev/vx/dmp
dmpfs 11G 0K 11G 0% /dev/vx/rdmp
swap 11G 656K 11G 1% /tmp
/dev/dsk/c1t0d0s3 25G 18G 6.8G 72% /oracle
/dev/vx/dsk/suportaldg/oracle1
12G 11G 1.1G 91% /oracle1
/dev/vx/dsk/suportaldg/oracle2
12G 8.1G 3.7G 69% /oracle2
/dev/vx/dsk/suportaldg/orapurge
200G 182G 17G 92% /orapurge
/dev/vx/dsk/suportaldg/oracle3
12G 10G 1.9G 85% /oracle3
/dev/vx/dsk/suportaldg/oracle4
12G 12G 58M 100% /oracle4
/dev/vx/dsk/suportaldg/oracle5
7.0G 5.9G 1.0G 86% /oracle5
/dev/vx/dsk/suportaldg/oracle6
7.0G 6.4G 564M 93% /oracle6
/dev/vx/dsk/suportaldg/oracle7
23G 23G 358M 99% /oracle7
/dev/vx/dsk/suportaldg/oracle8
13G 13G 165M 99% /oracle8
/dev/vx/dsk/suportaldg/oracle9
23G 22G 1.4G 94% /oracle9
/dev/vx/dsk/suportaldg/oracle10
12G 10.0G 1.9G 85% /oracle10
/dev/vx/dsk/suportaldg/oracle11
39G 36G 2.1G 95% /oracle11
/dev/vx/dsk/suportaldg/oracle12
39G 38G 1.1G 98% /oracle12
/dev/vx/dsk/suportaldg/oracle13
68G 65G 2.6G 97% /oracle13
/dev/vx/dsk/suportaldg/oracle14
200G 199G 1.3G 100% /oracle14
/dev/vx/dsk/suportaldg/oracle15
200G 196G 3.6G 99% /oracle15
/dev/vx/dsk/suportaldg/oracle16
70G 64G 5.5G 93% /oracle16
/dev/vx/dsk/suportaldg/oracle20
7.0G 6.4G 609M 92% /oracle20
/dev/vx/dsk/suportaldg/oracle50
28G 26G 2.0G 93% /oracle50
/dev/vx/dsk/suportaldg/oratranslog
185G 165G 19G 90% /oratranslogso how i can create standby database with different directory structure, help is appreciated.
Thanks
Edited by: prakashdba on Mar 5, 2009 11:04 PMLooks like very difficult and inform you mgmt about the drawbacks of running olderv ersions
may be you can try something like this but i dont know whether it is supported or not
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle3','/dev/vx/dsk/suportaldg/STDBY/oracle3']
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle4','/dev/vx/dsk/suportaldg/STDBY/oracle4']
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle5','/dev/vx/dsk/suportaldg/STDBY/oracle5'] -
Registering an Oracle 10g R2 database in Active Directory
Hi Gurus!
I'm testing with Oracle 10g R2 and Windows 2003 Server (german version). I have the following configuration:
Computer 1:
OS: Windows 2003 Server SP 2
Status: Domain Controller (DNS and AD is correctly setup by the server configuration wizard)
Oracle Client Administration tools are installed.
Computer 2:
OS: Windows 2003 Server SP 2
Status: Domainclient (DNS resolution of the DC works perfectly)
Oracle database 10g R2 is installed with Advanced Security Option
I did the steps to create the Oracle schema and Oracle context in Active Directory as mentioned in Claus Jandausch's Book "Oracle 10g Release 2 für Windows und .NET". I could do this steps without any errors. After that I configured ldap.ora and sqlnet.ora on Computer 2 like this:
ldap.ora
DEFAULT_ADMIN_CONTEXT = "dc=oracle,dc=de"
DIRECTORY_SERVER_TYPE = ADsqlnet.ora
SQLNET.AUTHENTICATION_SERVICES = (NTS)
NAMES.DIRECTORY_PATH = (LDAP)In the next step I've created a Net Servicename with Netmanager in the Oracle Context. Creation and resolution of this Net Servicename (tnsping) could be done flawlessly. But now I've come to the sticking point where I want to register my database in Active Directory. I also did as Claus Jandausch said in his book. I've opened the database configuration assistant and tried to do the registration but DBCA hangs at 7 % and an TNS-04405 pops up that tells me: Datenbankeintrag kann in Directory Service nicht erstellt werden. TNS-04405 Allgemeiner Fehler (Databaseentry could not be created in Directory Service. TNS-04405 Common Error).
Because this only a testing environment I've tried to give the Dom Admin full access to the complete Domain Context and Configuration Context but event that did not the trick.
Does anyone know what hooks, bugs or other things could be within Oracle or AD that prevent me from registering my database?
I'm looking forward to you posts and I appreciate your help.
yours sincerely
Florian W.Before you can install RAC, you need disk storage that is configured to be used by two or more computers at the same time.
The difficulty in RAC installation is getting that storage correct.
If you are doing this for a real environment, you will need to ensure you have the right KIND of storage. If you are doing this to play around (learn, evaluate, prototype) you can get away with a simulation of that storage.
Assuming a serious implementation, the options are:
- NetApp filer using their special implementation of NFS;
- shareable iSCSI (the shareable part is not often found - available from NetApp as well);
- SANs that permit multiple accesses to the raw LVM;
- cluster file systems, such as Veritas CFS.
For play-around implementations, you could also use;
- two computers, using configurable firewire or scsi controllers, attached to firewire or scsi drives;
- VMWare, as described by Howard at http://www.dizwell.com;
- NetApp simulator (if you have a valid NetApp license already).
Of these options, I personally lean toward the NetApp NFS as it is the least expensive of the production-worthy options. NetApp sells the FAS250 with 1TB disk at a reasonable price. -
How to use Logical database in function module?
I will create a function module in HR.
but how to use Logical database in function module ? Logical database PNP always show screen.in function (RFC) code , it is a matter.You cannot attach the LDB to the main program of the function group.
- So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
- Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
- Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
Regards -
I want to use Berkely database for my Dissertation
Hello everyone,
I am having some doubts regarding Berkely database. Actually, I am using this database for my project. The scenario of the project is, I have developed some business rules depending on the concept of Ripple Down Rules and represented the rules using Conceptual graphs. Now I want to store fire these business rules in to the Berkely database, so that my application can use these business rules from the Berkeley database.
This is the context of my project. But, I am very new to this Berkely database. I have downloaded the Berkely database from the Oracle website and also installed it. The OS is am using is Windows XP SP2. Can anyone explain me how to store Conceptual graphs in a Berkely database.
I am really a beginner to Berkely database. i don't even know what to do after installing the Berkely database. Please advise me about this.
I would be very thankful to you.
Cheers,
Phani.Hi Phani,
The simple answer is however you want. Berkeley DB doesn't put any constraints on how you store data in it. Its main purpose is to provide an efficient and scalable key/value storage and retrieval system, upon which you can build your own data storage system.
More specifically, if you're representing graph data, the simplest way to do so is with the "edge list" paradigm. You could, for example, set up a pair of databases, one to store all your graph nodes (with associated metadata) and one for directed edges. I'm not sure what particular c structures you'll want to use for these, but I'd suggest using record numbers on both the nodes and the edges DBs, unless all your nodes have unique and meaningful names. I'd also allow duplicate records on your edges DB, and have a very simple record structure in it that simply maps from a source node id to a destination node it (the duplicates allow multiple edges from a given node.)
If you have more specific constraints on your graph and algorithms you'd like to run on it, there are potentially more schemes you could use, such as the nested set representation for trees, and so on.
Hope this helps,
Daniel -
Right way to code an AIR application that uses sqllite database
I am developing an AIR application that uses sqllite database.I want to know the correct way in which I should create the connections and SQLstatements according to MVC pattern.For example,whether i should have a single SQLStatement object for all my sql operations or I should use separate objects for insert,delete,select etc.I know how to open connection,execute statements and all,but i want to know the professional way of writing it.
Make a controller for connect to db and save the connection in global varible (in model). Use this connection variable whenever u wanna execute the sql statements. Create seperate dao's for each table. Queries should be executed under the daos. You can call the method under the dao for execute the query from controller and show the result in view.
-
Can we use different Databases (Oracle & SQL Server) in one report?
Post Author: venki5star
CA Forum: .NET
Hi there.
Can we use different databases (Oracle & SQL Server) in a same report?
If possible how?
Another question,
Can we change the Provider Name at runtime of the given report. If so the above question is useless...
Thanks in Advance.I tried this using Oracle Provider for OLEDB (the one that supplied by Oracle Client) and Crystal Reports 9. you can drag the column into designer but the image does not appear in preview.
I guess it's because CR does not recognized it as image, and there are no information that the blob data is an image at all. -
How can I use two database in Dataset in SSRS?
Hi,
I am using one query to generate my SSRS report. In that query I am using subquery. Now I am pulling data from multiple tales.
DB used in sub query is different than the rest of the tables DB.(So total I am using 2 DB(Database))
So I see that in SSRS, I can connect query(In DataSet Properties) to one DATA_SOURCE only, how can I use other database which is I used in sub-query?
I have to move this SSRS into PROD and I can't hard code that sub-query's DB name in my query.
Please give me suggestion. Thanks!!
VickyIn SSRS 2008 R2 you can use the Lookup function (http://technet.microsoft.com/en-us/library/ee210531.aspx ) and LookupSet function (http://technet.microsoft.com/en-us/library/ee240819.aspx
Depending on your security set up, you can reference a table in a second database on the same server using a three part name: database.schema.table. This is more likely to work for you if you wrap your SQL command in a stored procedure.
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com -
How to host one application using different database connection on OAS?
Hi,
Jdeveloper - 10.1.3.4
Application - ADF/BC
Oracle Application Server - 10.1.3
Above our the specifications for our application,
We have two database schemas different for development and production therfore we have different databse connections for the two,
we have one application which is in production and enhacements on the same application are done by the development team.
Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
Thanks & Regards,
RakshaUse different deployment profiles each with a different context root for your application?
See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html
Maybe you are looking for
-
Hi Experts, I.Planning Strategy:20 2.I have sales order stock for a particular order 3.For any reason this SO is cancelled. 4.I want this sales order stock to be used for another sales order. is it possible? Regards Reshmi
-
OMS is up and running but unable to get the console page through web browser
Hi All, I have a wierd issue here. I have my OMS running successfully, but I am not able access it through HTTPS connection in web browser. My version of OEM is 11.1.0.1 It was working till yesterday, I am not sure what happened suddenly that its n
-
Why did my Creative cloud desktop app stop working!
Why did my Creative cloud desktop app stop working! Ask me to remove and install it with a new download only for that to not fix or work! Sending me around in circles! Very frustrating and annoying!
-
Move percent in pie chart?
I'd like to be able to shift the percentage number in a pie chart slightly to add text below it with a text block. Is there any way to do this? It seems I can just have the percentage amount appear either inside or outside the pie piece, but can't po
-
Error while displaying ESS Form 16, ~designbaseurl illegal host entry
While executing the form 16 in portal we are getting an error. ~designbaseurl illegal host but if i run this directly using the url its working fine. Suggest mes. Thanks in advance, Mr.Chowdary