Distributed App. Server Backup
I have:
machine1-Identity Management(OID,SSO)
machine2-Middle Tier(portal,forms,reports)
machine3&4-Metadata Repository in RAC database
I want to know how to backup the App. Server Environment. In most documentation, it assumes that the Metadata Repository is on the same machine as Identity Management and when this is the case, the backup tool will automatically backup the Identity Management config and the Metadata Repository datafiles.
Since I do not have this configuration, how can I backup the Metadata Repository, Identity Management and Middle Tier. I figure I need to do the backups very close to each other timewise and that this is the order I should do them in. I am afraid that if I just schedule a RMAN backup of the RAC database at a different time than the App. Server backups that they could be inconsistant. Any suggestions?? Thanks.
You can run the tool in the MR Oracle home, the Identity Management
Oracle home, and the middle tier Oracle home. The order doesn't matter,
and, yes, you should do these as close together as possible and not
make any administrative changes until all backups have completed.
We will update future documentation to make this clear.
Thanks!
Beth
Similar Messages
-
Distributed transactions, EJB and Sun Java App Server
Hello,
I'm trying to implement a CMT Stateless EJB that inserts data into a Oracle 9.2 table. All this running into a Sun Java System App Server 8.2 and using a XA Database Connection Pool.
Before starting bothering you, a simple question: has anybody successfully retrieved a connection from a XA connection pool? I've read somewhere that Oracle thin client is very limited and I wonder if one of its limitations would be "no support to XA transactions".
My pool information:
<jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.xa.client.OracleXADataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="MyXAPool" pool-resize-quantity="2" res-type="javax.sql.XADataSource" steady-pool-size="8" transaction-isolation-level="read-committed">
<property name="DataSourceName" value="OracleXADataSource"/>
<property name="ImplicitCachingEnabled" value="false"/>
<property name="NetworkProtocol" value="tcp"/>
<property name="LoginTimeout" value="0"/>
<property name="Password" value="arbor123"/>
<property name="URL" value="jdbc:oracle:thin:@HostName:1521:Alias"/>
<property name="NativeXA" value="false"/>
<property name="User" value="arbor"/>
<property name="ExplicitCachingEnabled" value="false"/>
</jdbc-connection-pool>
I created a jdbc resource called jdbc/__myxa so I can access the database pool using JNDI.
The code:
InitialContext jndiContext = new InitialContext();
DataSource ds = (DataSource) jndiContext.lookup("jdbc/__myxa");
Connection con = ds.getConnection();
PreparedStatement ps = con.prepareStatement( "INSERT INTO TESTE_CLAUDIO( MSG, MSG_DT) VALUES ('" + aMessage + "', SYSDATE)" );
ps.execute();
con.close();
When attempting to get the connection, I got an exception saying that:
"This Managed Connection is not valid as the phyiscal connection is not usable"
Thanks for any informationHi Claudio,
J2EE applications should retrieve all their resources through their component environment (java:comp/env) -- not by doing a global JNDI lookup. You should declare a resource-ref in ejb-jar.xml for the bean and then map that resource-ref to your physical data source (jdbc/__myxa) in sun-ejb-jar.xml. E.g, if the res-ref-name is "foo", your code would look it up under context.lookup("java:comp/env/foo");
--ken -
Best practice when using Tangosol with an app server
Hi,
I'm wondering what is the best practice when using Tangosol with an app server (Websphere 6.1 in this case). I've been able to set it up using the resource adapter, tried using distributed transactions and it appears to work as expected - I've also been able to see cache data from another app server instance.
However, it appears that cache data vanishes after a while. I've not yet been able to put my finger on when, but garbage collection is a possibility I've come to suspect.
Data in the cache survives the removal of the EJB, but somewhere later down the line it appear to vanish. I'm not aware of any expiry settings for the cache that would explain this (to the best of my understanding the default is "no expiry"), so GC came to mind. Would this be the explanation?
If that would be the explanation, what would be a better way to keep the cache from being subject to GC - to have a "startup class" in the app server that holds on to the cache object, or would there be other ways? Currently the EJB calls getCacheAdapter, so I guess Bad Things may happen when the EJB is removed...
Best regards,
/PerHi Gene,
I found the configuration file embedded in coherence.jar. Am I supposed to replace it and re-package coherence.jar?
If I put it elsewhere (in the "classpath") - is there a way I can be sure that it has been found by Coherence (like a message in the standard output stream)? My experience with Websphere is that "classpath" is a rather ...vague concept, we use the J2CA adapter which most probably has a different class loader than the EAR that contains the EJB, and I would rather avoid to do a lot of trial/error corrections to a file just to find that it's not actually been used.
Anyway, at this stage my tests are still focused on distributed transactions/2PC/commit/rollback/recovery, and we're nowhere near 10,000 objects. As a matter of fact, we haven't had more than 1024 objects in these app servers. In the typical scenario where I've seen objects "fade away", there has been only one or two objects in the test data. And they both disappear...
Still confused,
/Per -
10.1.2 App Server and Discoverer
Hello,
I'm attempting to install and configure Discoverer. I have installed the 10.1.2 Infrastructure successfully. As I read the docs for Installing the MidTier, I run into confusion. in part 7 of the Oracle Application Server (10.1.2) Quick Installation Guide, titled Installing Portal and Wireless or Business Intelligence and Forms Developer Topology. It claims that I will have a Business Intelligence and Forms option on the Installation Type screen. Well, this is not true. I have the following options after I choose Mid Tier: J2EE & Web Cache and Portal and Wireless. I don't have a BI & Forms option. Now, I did put the 3 cd's of BI on the machine in assuming that I will need them.
Do I need to install J2EE & Web Cache OR Portal and Wireless from the App Server Disk, or do I just need to install Bus. Intelligence from the 3 BI cd's? The documentation seems to have been a quick copy/paste from a previous version with pieces/steps missing. Thanks in advance,
KellyHi Kelly,
The Oracle Application Server Middle Tier Installation should have the BI option - I just installed the Oracle Application Server 10.1.2.0.0 & as mentioned on the Installer Page, I saw have all these products :-
* Oracle HTTP Server
* Oracle Application Server Containers for J2EE (OC4J)
* Oracle Application Server Web Cache
* Oracle Application Server Portal
* Oracle Application Server Wireless
* Oracle Sensor Edge Server
* Oracle Enterprise Manager 10g Application Server Control
* Oracle Database Server 10g (10.1.0.4.2)
* Oracle Internet Directory
* Oracle Application Server Single Sign-On
* Oracle Application Server Directory Integration Provisioning
* Oracle Application Server Delegated Administration Services
* Oracle Application Server Certificate Authority
* Oracle Application Server Forms Services
* Oracle Application Server Reports Services
* Oracle Application Server Personalization
* Oracle Business Intelligence Discoverer
* Oracle Security Developer Tools
* Oracle Application Server Guard
* OracleAS Backup and Recovery ToolDid you download the CDs from the download page ? :-
http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
Regards,
Sandeeep -
App Server and Process Scheduler stuck while booting
Hi All,
We are facing a big issue in our production instance.The application server showed down while accessing the PIA.When we tried to reboot the same it didnt start and was getting stuck after some steps..few snipets are below after the last PSSRENSRV process does not proceed further.
exec PSSAMSRV --A -- -C psappsrv.cfg -D FNPROD -S PSSAMSRV:
CMDTUX_CAT:819: INFO:Process id=5584 Assume started <pipe>.
exec PSSAMSRV --A -- -C psappsrv.cfg -D FNPROD -S PSSAMSRV:
CMDTUX_CAT:819: INFO:Process id=5600 Assume started <pipe>.
exec PSSAMSRV --A -- -C psappsrv.cfg -D FNPROD -S PSSAMSRV:
CMDTUX_CAT:819: INFO:Process id=5616 Assume started <pipe>.
exec PSSAMSRV --A -- -C psappsrv.cfg -D FNPROD -S PSSAMSRV:
CMDTUX_CAT:819: INFO:Process id=5632 Assume started <pipe>.
exec PSSAMSRV --A -- -C psappsrv.cfg -D FNPROD -S PSSAMSRV:
CMDTUX_CAT:819: INFO:Process id=5648 Assume started <pipe>.
exec PSSAMSRV --A -- -C psappsrv.cfg -D FNPROD -S PSSAMSRV:
CMDTUX_CAT:819: INFO:Process id=5664 Assume started <pipe>.
exec PSRENSRV --A -- -C psappsrv.cfg -D FNPROD -S PSRENSRV:The tuxedo,appserv and renserv logs shows,
renserv log
----- Begin booting PSRENSRV -------------------------
0.5608 [14/Jul/2011 07:51:54](ERROR) CRenTuxSvcMgr::ReqBootParameters - Tux service call failed.
----- Begin booting PSRENSRV -------------------------
0.5056 [14/Jul/2011 07:58:47](ERROR) CRenTuxSvcMgr::ReqBootParameters - Tux service call failed.
----- Begin booting PSRENSRV -------------------------
0.780 [14/Jul/2011 08:21:04](ERROR) CRenTuxSvcMgr::ReqBootParameters - Tux service call failed.------------------------------------------------------------------------------------------
tuxedo log
receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV
082104.UKLO2K3S55!JSH.5060.5084.-2: JOLT_CAT:1107: "ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV"
082104.UKLO2K3S55!WSH.4364.1752.0: WSNAT_CAT:1107: ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV
082104.UKLO2K3S55!WSH.4472.4416.0: WSNAT_CAT:1107: ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV
082104.UKLO2K3S55!WSH.1684.4128.0: WSNAT_CAT:1107: ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV
082104.UKLO2K3S55!WSH.4256.4172.0: WSNAT_CAT:1107: ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV
082104.UKLO2K3S55!JSH.4876.496.-2: JOLT_CAT:1107: "ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV"
082104.UKLO2K3S55!WSH.4896.4284.0: WSNAT_CAT:1107: ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV
082104.UKLO2K3S55!JSH.4800.1036.-2: JOLT_CAT:1107: "ERROR: Error receiving messages, tperrno = TPEOS, Uunixerr = UMSGRCV"
082104.UKLO2K3S55!WSL.3904.4032.0: LIBTUX_CAT:703: ERROR: Cannot get statistics on message queue 43
082104.UKLO2K3S55!JSL.4316.4024.0: JOLT_CAT:1196: "INFO: Terminating handlers in preparation for shutdown"
082104.UKLO2K3S55!WSL.3904.4032.0: WSNAT_CAT:1197: INFO: Exiting system
082104.UKLO2K3S55!JREPSVR.5768.5800.0: LIBTUX_CAT:271: ERROR: System lock semop failure, key = 61480 (errno = 22)
082104.UKLO2K3S55!WSL.3904.4032.0: LIBTUX_CAT:268: ERROR: Failed to stop serving
082104.UKLO2K3S55!JSL.4316.4024.0: JOLT_CAT:1197: "INFO: Exiting system"
082104.UKLO2K3S55!JREPSVR.5768.5800.0: LIBTUX_CAT:268: ERROR: Failed to stop serving
082104.UKLO2K3S55!JSL.4316.4024.0: LIBTUX_CAT:268: ERROR: Failed to stop serving
082105.UKLO2K3S55!PSWATCHSRV.6124.568.-2: ERROR: msgrcv err(LIBTUX_CAT:669: ERROR: Message operation failed because of the invalid message queue identifier): errno=22,qid=2,buf=9580216,bytes=4572,type=-1073741824,flag=2048
082105.UKLO2K3S55!PSWATCHSRV.6124.568.-2: LIBTUX_CAT:268: ERROR: Failed to stop serving------------------------------------------------------------------------------------------
app serv log
PSADMIN.4944 (0) [07/14/11 07:48:28](0) Begin boot attempt on domain FNPROD
PSWATCHSRV.4720 (0) [07/14/11 07:48:33] Starting
PSADMIN.4944 (0) [07/14/11 07:52:29](0) End boot attempt on domain FNPROD
PSADMIN.4944 (0) [07/14/11 07:55:46](0) Begin boot attempt on domain FNPROD
PSWATCHSRV.1412 (0) [07/14/11 07:55:50] Starting
PSADMIN.4892 (0) [07/14/11 08:08:07](0) Begin boot attempt on domain FNPROD
PSWATCHSRV.5032 (0) [07/14/11 08:08:13] Starting
PSADMIN.4892 (0) [07/14/11 08:08:27](0) End boot attempt on domain FNPROD
PSADMIN.6104 (0) [07/14/11 08:20:28](0) Begin boot attempt on domain FNPROD
PSWATCHSRV.6124 (0) [07/14/11 08:20:32] Starting-----------------------------------------------------------------------------------------
tuxedo log
213815.UKLO2K3S55!PSSAMSRV.6072.6040.0: LIBTUX_CAT:262: INFO: Standard main starting
213815.UKLO2K3S55!PSRENSRV.2440.2444.-2: 07-13-2011: Tuxedo Version 8.1 32-bit Windows.
213815.UKLO2K3S55!PSRENSRV.2440.2444.-2: LIBTUX_CAT:262: INFO: Standard main starting
214434.UKLO2K3S55!BBL.5964.4464.0: ERROR: msgrcv err(LIBTUX_CAT:666: ERROR: Message operation failed because the queue was removed): errno=100,qid=257,buf=10285048,bytes=4572,type=-1073741824,flag=0
214434.UKLO2K3S55!PSRENSRV.2440.2444.-2: ERROR: msgrcv err(LIBTUX_CAT:666: ERROR: Message operation failed because the queue was removed): errno=100,qid=277,buf=11551960,bytes=8668,type=805306369,flag=0
214434.UKLO2K3S55!BBL.5964.4464.0: ERROR: msgrcv err(LIBTUX_CAT:669: ERROR: Message operation failed because of the invalid message queue identifier): errno=22,qid=257,buf=10285048,bytes=4572,type=0,flag=0
214434.UKLO2K3S55!BBL.5964.4464.0: LIBTUX_CAT:271: ERROR: System lock semop failure, key = 33242 (errno = 22)
214434.UKLO2K3S55!BBL.5964.4464.0: LIBTUX_CAT:268: ERROR: Failed to stop serving
214434.UKLO2K3S55!BBL.5964.4464.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
214434.UKLO2K3S55!PSWATCHSRV.5208.4528.-2: ERROR: msgrcv err(LIBTUX_CAT:669: ERROR: Message operation failed because of the invalid message queue identifier): errno=22,qid=258,buf=9654368,bytes=27996,type=-1073741824,flag=2048
214434.UKLO2K3S55!PSWATCHSRV.5208.4528.-2: LIBTUX_CAT:268: ERROR: Failed to stop serving
214507.UKLO2K3S55!tmboot.4616.5152.-2: 07-13-2011: Tuxedo Version 8.1 32-bit Windows.
214507.UKLO2K3S55!tmboot.4616.5152.-2: TUXNT_CAT:4: ERROR: Cannot access ipc server (The system cannot find the file specified.
214507.UKLO2K3S55!tmboot.4616.5152.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler
214508.UKLO2K3S55!PSADMIN.868: End boot attempt on domain FNPRODAlso the process scheduler was not getting booted the logs are shown below,
scheduler log
085646.UKLO2K3S55!restartsrv.2484.4116.-2: server BASE/101: CMDTUX_CAT:587: INFO: Cannot restart server, scheduling for cleanup
085653.UKLO2K3S55!BBL.4044.5996.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server BASE/101
085653.UKLO2K3S55!BBL.4044.5996.0: LIBTUX_CAT:216: WARN: Process 4300 died; removing from BB
085653.UKLO2K3S55!BBL.4044.5996.0: LIBTUX_CAT:216: WARN: Process 5372 died; removing from BB
085653.UKLO2K3S55!BBL.4044.5996.0: LIBTUX_CAT:216: WARN: Process 5640 died; removing from BB
085653.UKLO2K3S55!BBL.4044.5996.0: LIBTUX_CAT:216: WARN: Process 5768 died; removing from BB
085653.UKLO2K3S55!cleanupsrv.4148.4364.-2: 07-14-2011: Tuxedo Version 8.1 32-bit Windows.
085653.UKLO2K3S55!cleanupsrv.4148.4364.-2: GP_CAT:1077: ERROR: Unable to open environment file E:\Psoft\PRDAPP\appserv\prcs\FNPROD\psprcsrv.env for reading
085653.UKLO2K3S55!cleanupsrv.4148.4364.-2: LIBTUX_CAT:353: ERROR: Error putting ENVFILE E:\Psoft\PRDAPP\appserv\prcs\FNPROD\psprcsrv.env into environment
085653.UKLO2K3S55!cleanupsrv.4148.4364.-2: server BASE/101: CMDTUX_CAT:551: INFO: server removed
085743.UKLO2K3S55!BBL.4044.5996.0: ERROR: msgrcv err(LIBTUX_CAT:666: ERROR: Message operation failed because the queue was removed): errno=100,qid=80,buf=10304328,bytes=4572,type=-1073741824,flag=0
085743.UKLO2K3S55!BBL.4044.5996.0: ERROR: msgrcv err(LIBTUX_CAT:669: ERROR: Message operation failed because of the invalid message queue identifier): errno=22,qid=80,buf=10304328,bytes=4572,type=-1073741824,flag=0
085743.UKLO2K3S55!BBL.4044.5996.0: LIBTUX_CAT:271: ERROR: System lock semop failure, key = 64479 (errno = 22)
085743.UKLO2K3S55!BBL.4044.5996.0: LIBTUX_CAT:268: ERROR: Failed to stop serving
085743.UKLO2K3S55!BBL.4044.5996.0: CMDTUX_CAT:26: INFO: The BBL is exiting systemIs this a problem with Tuxedo if so what has to be done...Pls help its a bit urgent...
Thanks in advance...First of all; if a problem is urgent then you should always contact Oracle support instead.
It looks like the domain is corrupt within Tuxedo. You could try to reconfigure the domain so that it will get recreated in Tuxedo. Make sure you have a backup before you do this. To reconfigure the domain simply open a CMD box and type the following command (from the appserver directory):
psadmin -c configure -d "DOMAIN_NAME"
You can only use this command for the application server. -
Central Service Instance missing after Additional App server was installed
Hi Experts
I had installed SAP Netweaver CE7.1 system in 2 machines as distributed system.
I did installation as follow:
1. Install MSSQL server native access client in machine 1
2. Install DB server in machine 2
3. Install SCS in machine 1
4. Install DB instance in machine 2
5. Install PAS in machine 1
The installation had been fine. I had checked by confirming at the MMC. In machine 1, I could see SCS, PAS and DB running. I had also logged on into portal and NWA.
Then I installed Additional App server in machine 2.
Howerver, in the end of the installation it said that the installation has been stopped.
Later when I see the MMC, I found that I could see DB, PAS and AAS only. SCS was missing and
the system could not start.
I am very much looking forward to hearing from you what went wrong during the installation of AAS.
The log generated in the sapinst.log is really long. I got server error when I put the log data in this message. I can send it through mail if need be.
Regards,
Sudeepproblem solved
-
App.server load balancing for SAP System with 1 PS
Hi,
In SAP CPS 7.0 (Build M26.12) I have a SAP system with Central Instance + 10 App.servers, but all instances are managed by 1 ProcessServer.
After activating the "App.server load balancing" setting in SAP system definition the application servers are becoming visible in CPS with their load factors (number of BGD wp's on app.servers) and load numbers (number of active jobs on app.servers).
This is so far fine, but the additional functionality is not working as I would expect, I have issues with 2 functionalities:
1. Based on documentation after activating also the XAL connection the CPS should submit the job on app.server with best performance based on XAL monitoring data filling the TARGET_SERVER parameter.
This functionality is not working for me at all
2. A useful functionality after activating the "App.server load balancing" setting is that the ProcessServer is going to "Overloaded" status when all BGD wp's of SAP system are occupied, thus restricting submitting new jobs during overload situation. But I had an issue also with this functionality, after SAP system recovery from overload situation, the CPS still remained in Overload status (so no new jobs were submitted).
As a workaround I had increased the treshold values for loads on all app.servers for this SAP system, what was fine for several days, but after a while I believe this was a reason of unexpected performance issues in CPS, therefore I have deactivated the 'App.server load balancing" setting at all for this ProcessServer.
I would appreciate your feedbacks with this functionality.
Thanks and Regards,
Ernest LiczkiHi Preetish,
This connect string option is to loadbalance RFC connections. These are balanced upon login, once you are connected to a particular application server (AS) you stay on that server until you reconnect.
Since CPS uses multiple RFC connections, this will result in the connections being distributed over the available AS resources which is fine as long as they are generally evenly loaded. If you have certain AS hosts that are continuosly more loaded than the rest, then you probably don't want the CPS RFC connections to end up on these servers.
The original question is about loadbalancing of batch jobs over the available AS resources, and this is done independent of the RFC connection load balancing. Even if all CPS RFC connections are pinned to the DB/CI host, you can still loadbalance jobs over the available SAP AS hosts, either by using SAPs builtin balancing, or the CPS algorithm by activating the checkbox as indicated in the first entry in this thread.
Finally, to reply to Ernest's question: I believe there are some fixes on the app load balancing in the latest release, M26.17 should be available on the SWDC now.
Regards,
Anton.
Edited by: Anton Goselink on May 29, 2009 9:06 PM -
Sizing for NW2004s 7.0 App server
Hi All
This is regarding the sizing req's for SAP NW2004s (7.0) app server which is required for the installation of GTS. I am going through the req's for a new implementation of GTS 7.1 for a very small user group ( Less than 10) on AIX with Oracle.
I have been told that the initial estimates for the server HD size cam up to 75 gb each for the DEV and QA and this apparently includes the app+db.
I am not familiar with the quicksizer and someone else arrived at this number. I doubt that 75 gb for an ABAP+JAVA NW 7.0 install would be sufficient to house the db and app and am still reading through documentation to verify this.
Can someone who has gone through the NW app server installations clarify this and let me know if there is a breakup of file sizes for the Orcale and the SAP files for an NW 2004s app server install.
Thanks
VicWas this installation done on UNIX ?
: nope System that I tell you is windows.
Do you have any breakup for the SAP sytem and the Database files (sapdata and teh log files) ?
: BREAKUP ???? did you mean backup if "backup" is YES.
Does this account for the swap space and how RAM do you have on your system ?
: for RAM I have on my system is 9GB but I can install 3 instance(SID) and DB in one Server
maybe we can share Exp. in how to tuning for best performance next time -
Connecting to EJ bean in Sun App Server 8
I am working my way through the j2eetutorial14, and have successfully built the Converter app. However, I need to run the stand-alone client, connecting to the bean, in a server-independent way. So, as part of my exercise, I copied the client code in Eclipse, and made the following changes to the code:
from the original example:
Context initial = new InitialContext();
Context myEnv = (Context) initial.lookup("java:comp/env");
Object objref = myEnv.lookup("ejb/SimpleConverter");
ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);to this:
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
properties.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:3700");
Context initial = new InitialContext(properties);
Object objref = initial.lookup("ConverterBean");
ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);Now I am getting this exception in the narrow() method:
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at ConverterClient.main(ConverterClient.java:27)When I run the client from the script:
appclient -client ConverterAppClient.jarit works as expected. I am obviously missing something in my Eclipse runtime environment, but the manual was of no help so far. (But j2ee.jar library from C:\Sun\AppServer\lib is in the classpath.)
If anyone successfully connected to the Sun App Server 8 EJB from a stand-alone client and can share their wisdom, I will appreciate it.
On a more general note, what are the pitfalls to watch for when writing, packaging and distributing an EJB app (bean and stand-alone client) in a server-independent way? Any pointers?
Thanks for any help.
Alex.Did you have the EJB client JAR in your classpath? Yes, and I spent all day searching the Forums for the clues. I found the answer, and was going to post it here. The client JAR was missing the RMI stubs. The process of generating the stubs is quite cumbersome - at least, the one that I discovered. It involves deploying the EAR first, then going to the Admin Console and manually setting a number of options, then collecting the sought-for JAR from the Sun App Server's applications directory. The generated file will contain the stubs, and also the Home and Remote interface files, as well as the bean class (something that the client will never need). So, I may have to write a script to strip off the needless baggage from the client JAR.
I have been working with JBoss and its plugin for Eclipse for some time now, and grew spoiled by the ease of deployment there, including the fact that the JBoss/Eclipse combo took care of the RMI stubs and many other things that Sun's server exposes to the developer.
Anyway, here is my cookbook that I made as I was working through the process of generating the stubs:
====================================
Creating a stand-alone Client:
The stand-alone client need RMI stubs to communicate with the EJ bean on the server side. To create the stubs:
1. Start the Admin Console web page (Start > All Programs > Sun Microsystems > Application Server PE > Admin Console). In the left-hand frame select: Applications > Enterprise Applications.
2 In the right-hand frame, press Deploy button.
3 Select file to upoad (navigate to the application EAR). Press Next.
4. Set Application Name field (it should be preset), and check the Generate: RMIStubs checkbox. If this procedure was done before, check the Redeploy box to force generation of the file.
5. Press OK button.
The JAR file with stubs will be placed into C:\Sun\AppServer\domains\domain1\applications\j2ee-apps directory.
The stubs have format _name_Stub.class and _nameHome_Stub.class (e.g. for Converter app the files are ConverterStub.class and ConverterHomeStub.class). These files must be extracted and placed into the client's classpath. Alternatively, the entire JAR file can be made part of the client's classpath.
====================================
Thank you for the quick reply.
Alex. -
Renamed Distributed App Shows Old Name in Monitor
In SCOM 2012 I renamed a distributed application. The new name is correct in the authoring view but in the monitor it still shows the old name. I tried clearing the cache but that did not fix anything. I exported the management pack where the distributed
app is defined and I only see the new name in there, so I don't know where it getting the old name. There were other threads in the forum that mentioned checking the regional options in the server and client machines, but everything is set to US English, so
it does not look as if that is the problem.We are already on the SCOM 2012 R2 CU4.
also you can seal your mp. Did you run SQL script after install cu4?
Vladimir Zelenov | http://systemcenter4all.wordpress.com -
Distributed app not monitored by default?
Hi
I've created my first simple distributed application in SCOM (in this case, it's just an iSCSI target server at the bottom and above, two certificate authority servers depending off it - the CA cluster have a database on shared storage).
However, despite all servers having a management pack and being monitored, the distributed app shows up as Not Monitored. Is there an additional step to get this monitored?
ThanksHi,
Do you have iSCSI server discovered and monitored? You may check operation manager event log for more details. And please also restart related services and check the result.
Hope the link below be helpful for you:
Distributed Applications
https://technet.microsoft.com/en-us/library/hh457612.aspx
In addition, please also try to re-create the DA.
Regads,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Oracle Apps Server can NOT restart.
Hi OTN Experts,
I encountered a trouble, after I backuped my instance,then apps server can not be restarted. I have read several similar threads,but still didn't find my solution. Could you please give me some suggestions.
*<<<<<<<<Symptom>>>>>>>>>>>>*
My Steps: start DB listener > start DB > Try to Start Apps.
I didn't encounter error while start DB listener and DB server,but while using adstrtal.sh to start apps server,encounter error.
+[oracle@bej301441 scripts]$ adstrtal.sh user/password+
You are running adstrtal.sh version 120.15.12010000.3
adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
USAGE: adstrtal.sh <appsusername/appspassword>
adstrtal.sh <applications_username/applications_password> -secureapps
adstrtal.sh -nodbchk
adstrtal.sh: exiting with status 1
*<<<<<<What I have investigated>>>>>>*
1.Then I guess there is something wrong with DB/DB listener.You know if DB doesn't work,then Apps server will not work. I tried to use sqlplus to connect instance.
+[oracle@bej301441 InstanceSID_bej301441]$ sqlplus user/password@InstanceSID+
SQL*Plus: Release 10.1.0.5.0 - Production on Sat Jun 30 03:18:39 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12537: TNS:connection closed
Enter user-name:
so It means there is something wrong with DB server.
2.Then I check DB listener situation. use "lsnrctl status InstanceSID"command.
+[oracle@bej301441 InstanceSID_bej301441]$ lsnrctl status InstanceSID+
LSNRCTL for Linux: Version 10.1.0.5.0 - Production on 30-JUN-2012 03:50:09
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bej301441)(PORT=1522))(CONNECT_DATA=(SID=InstanceSID)))
STATUS of the LISTENER
Alias InstanceSID
Version TNSLSNR for Linux: Version 11.1.0.7.0 - Production
Start Date 30-JUN-2012 03:09:47
Uptime 0 days 0 hr. 40 min. 21 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/InstanceSID/db/tech_st/11.1.0/network/admin/InstanceSID_bej301441/listener.ora
Listener Log File /u01/oracle/InstanceSID/db/tech_st/11.1.0/log/diag/tnslsnr/bej301441/InstanceSID/alert/log.xml
Listening Endpoints Summary...
+(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=my server ip address)(PORT=1522)))+
Services Summary...
Service "InstanceSID" has 1 instance(s).
Instance "InstanceSID", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
it appears DB listener works fine,is it right?
3.Use addbctl.sh to start DB server.It tell me server is running...
[oracle@bej301441 InstanceSID_bej301441]$ addbctl.sh start immediate
You are running addbctl.sh version 120.1
Starting the database InstanceSID ...
SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jun 30 07:33:53 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to an idle instance.
ORA-01081: cannot start already-running ORACLE - shut it down first
Disconnected
addbctl.sh: exiting with status 9
[oracle@bej301441 InstanceSID_bej301441]$
4.Execute "ps -ef|grep tns", I can see related processes..
+[oracle@bej301441 InstanceSID_bej301441]$ ps -ef|grep tns+
+root 13 2 0 May24 ? 00:00:00 [netns]+
oracle 13616 1 0 May27 ? 00:00:32 /u01/oracle/InstanceSID/apps/tech_st/10.1.2/bin/tnslsnr LISTENER -inherit
oracle 22183 1 0 02:55 ? 00:00:00 /u01/oracle/InstanceSID/apps/tech_st/10.1.2/bin/tnslsnr APPS_InstanceSID -inherit
oracle 22486 1 0 03:09 ? 00:00:00 /u01/oracle/InstanceSID/db/tech_st/11.1.0/bin/tnslsnr InstanceSID -inherit
oracle 28638 20816 0 03:51 pts/8 00:00:00 grep tns
+[oracle@bej301441 InstanceSID_bej301441]$+
5.tnsping the instance,appears works
C:\Documents and Settings\ptian>tnsping InstanceSID
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 30-6月 -2012 18:14:29
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = my server ip address)(PORT = 1522)) (CONNECT_DATA = (SID = InstanceSID)))
OK (770 msec)
C:\Documents and Settings\ptian>
*<<<<<<Some Config Files>>>>>>*
1./etc/hosts
[oracle@bej301441 InstanceSID_bej301441]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.182.74.33 my server ip address bej301441
10.182.74.181 bej301589.cn.home.com
138.1.191.58 rinoid06.us.home.com
138.1.191.59 rinoid07.us.home.com
2.$TNS_ADMIN/listener.ora
[oracle@bej301441 InstanceSID_bej301441]$ cd $TNS_ADMIN
[oracle@bej301441 admin]$ cat listener.ora
# $Header: admk80ln_ux.sql 120.9 2007/03/09 04:31:05 sbandla ship $
# LISTENER.ORA For Oracle Applications
# This file is automatically generated
APPS_InstanceSID =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= TCP)(Host= bej301441)(Port= 1627))
SID_LIST_APPS_InstanceSID =
(SID_LIST =
( SID_DESC = ( SID_NAME = FNDSM )
( ORACLE_HOME = /u01/oracle/InstanceSID/apps/tech_st/10.1.2 )
( PROGRAM = /u01/oracle/InstanceSID/user/password_st/appl/fnd/12.0.0/bin/FNDSM )
( envs='MYAPPSORA=/u01/oracle/InstanceSID/user/password_st/appl/APPSInstanceSID_bej301441.env,PATH=/usr/bin:/usr/ccs/bin:/bin,FNDSM_SCRIPT=/u01/oracle/InstanceSID/inst/apps/InstanceSID_bej301441/admin/scripts/gsmstart.sh' )
( SID_DESC = ( SID_NAME = FNDFS )
( ORACLE_HOME = /u01/oracle/InstanceSID/apps/tech_st/10.1.2 )
( PROGRAM = /u01/oracle/InstanceSID/user/password_st/appl/fnd/12.0.0/bin/FNDFS )
( envs='EPC_DISABLED=TRUE,NLS_LANG=American_America.AL32UTF8,LD_LIBRARY_PATH=/u01/oracle/InstanceSID/apps/tech_st/10.1.2/lib32:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads:/u01/oracle/InstanceSID/user/password_st/appl/sht/12.0.0/lib,SHLIB_PATH=/u01/oracle/InstanceSID/apps/tech_st/10.1.2/lib32:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads:/u01/oracle/InstanceSID/user/password_st/appl/sht/12.0.0/lib,LIBPATH=/u01/oracle/InstanceSID/apps/tech_st/10.1.2/lib32:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:/u01/oracle/InstanceSID/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads:/u01/oracle/InstanceSID/user/password_st/appl/sht/12.0.0/lib,APPLFSTT=InstanceSID_BALANCE;InstanceSID_FO;InstanceSID,APPLFSWD=/u01/oracle/InstanceSID/inst/apps/InstanceSID_bej301441/appl/admin;/u01/oracle/InstanceSID/inst/apps/InstanceSID_bej301441/appltmp;/u01/oracle/InstanceSID/user/password_st/comn/webapps/oacore/html/oam/nonUix/launchMode/restricted' )
STARTUP_WAIT_TIME_APPS_InstanceSID = 0
CONNECT_TIMEOUT_APPS_InstanceSID = 10
TRACE_LEVEL_APPS_InstanceSID = OFF
LOG_DIRECTORY_APPS_InstanceSID = /u01/oracle/InstanceSID/inst/apps/InstanceSID_bej301441/logs/ora/10.1.2/network
LOG_FILE_APPS_InstanceSID = APPS_InstanceSID
TRACE_DIRECTORY_APPS_InstanceSID = /u01/oracle/InstanceSID/inst/apps/InstanceSID_bej301441/logs/ora/10.1.2/network
TRACE_FILE_APPS_InstanceSID = APPS_InstanceSID
ADMIN_RESTRICTIONS_APPS_InstanceSID = ON
IFILE = /u01/oracle/InstanceSID/inst/apps/InstanceSID_bej301441/ora/10.1.2/network/admin/InstanceSID_bej301441_listener_ifile.ora
SUBSCRIBE_FOR_NODE_DOWN_EVENT_APPS_InstanceSID = OFF
[oracle@bej301441 admin]$
3.farewell is disabled as well
[oracle@bej301441 InstanceSID_bej301441]$ vi /etc/selinux/config
SELINUX=disabled
==================================
Could you please give me some suggestions, I am not clear what I need to check next...I have read many related topic, but still not find my solution.
Thanks for your time
PanThanks for your answer,
1. In site:http://becomeappsdba.blogspot.jp/2006/08/startup-shutdown-apps-services.html
It said,"+Order of StartUp of Services Should be First DB Listener, Database & then Application Tier Services+"
I just follow that..so what should be first, DB Server or DB listener? a little confused.
2. remotely,used SQLTools to connect instance,it told me:"*ORA-12537: TNS:connection closed*"
Could you please suggest next action plan.
Thanks
Pan -
Grouping JMS & JDBC transaction with JTA outside of an app server
hi,
Can anyone help me or direct me to some code/configuration that shows how to combine JDBC + JMS into one distributed transaction outside of an app server.
thanks in advance
michaelHi,
Well, transaction guru's please correct what I say here, but from what I
understand of your problem here goes:
If you begin a user transaction your are going to be starting a distributed
transaction. That's the point of doing it, and hence that's why you have an
XA. You have more than once resource participating in a transaction, and
that is what UserTransaction was created for. You can't do it with a local
transaction, which is for one resource only. I hope that answers "why
would I need a XA". Even if both resources are hosted by WebLogic, you have
explicitly asked for a UserTransaction...WL will optimize it if both are on
same server, but still.. In addition, if you have a true XA data source and
connection pool, then I would imagine that WL would list the transaction
system of the DB too....whcih won't be local.
As for your other problem, it seems to me that you have a connection pool of
connections that are not XA-aware. If you set the attribute in the
datasource and enable emulation, then the datasource becomes XA aware, but
only sort of. WL handles the XA behaviour of that resource, but with
limitations (you can't have more than one resource with XA emulation in the
same Tx). If you are using a connection factory with a different store that
uses XA-emulation, as well as straight JDBC from yet another pool using XA
emulation, then you will also get problems. Best is to use a real driver
that supports XA.
Regards,
Jon
-
Hardware Detection Problem (maybe) with App Server Installer
When i try to install the App Server, it tells me that I need at least 256 MB of RAM installed and does not allow me to install it. I have 1024 MB of RAM installed (PC2100 DDR).
Any idea how I can get around this?
I'm using the Red Hat Enterprise Linux 3.0 kernel distributed from the Red Hat FTP server.
ThanksAS 9.0.2 is not certified on RHEL 3. And since the platform is newer than the product you could expect some problems.
Perhaps you could try to install AS 9.0.4 (the "10g" one). -
Communication Server Vs APP Server
Dear frnds,
I want to know,
1. How to create 2 application server for single application?
2. Each server will run in different machine with different Port.
3. How communication server will distribute the request and send to the app.server?
4. How should i mention the port id if i use two diff. ports for App.Server?
Rgds,
Dhaya.Dhaya,
The forum does not work this way. One does not post one's homework, and expect someone else to do it. In addition, one is expected to have one's subject closely match the issue.
As a bit of friendly advice:
Try to solve the problem yourself. Then, if you run into doubt, you can bring those specific doubts here. You will be much more likely to get the help you need. People volunteer here to help other people learn.
It seems you are new to this; I highly recommend this excellent guide, concerning proper etiquette in a technical discussion forum.
Happy hacking,
John
Maybe you are looking for
-
I cannot open any tabs on Firefox. It opens to my homepage, but there is no line for a URL address. Therefore, there is no way to type in a new URL address. I have uninstalled and reinstalled Firefox twice and it has not helped. I am a former PC user
-
Stock upload not possible thru MB1C.
Hi Sap Gurus, Please help me to solve issue in delivery. I can't upload stock through MB1C. It shows the follwing massage......*Account Determination for entry INT GBB_BSA3100 not possible Massage no--M8147 Digonisys-- The system didn't find an accou
-
Hello friends: how can I setup my formsweb.cfg to use Sun Java Plug-In (instead of JInitiator) and WEBUTIL? I tried all I can but still send me the same error when I try to use some of its functionalities: oracle.forms.webutil.fileTransfer.FileTransf
-
How can I find out what port number my DB is using
How would one find out what port number a database is using? Is there a SQL command that will allow us to do this? Thanks, oracle_newbie
-
Nokia N70 not showing network signals
Hello my dear friends, I am currently facing a problem for my handset nokia n70. The problem is that the network signals which we always see on the top left side of the screen is not visible.I have checked by exchanging the sim card and tried it on a