Exception in thread "main" java.rmi.NotBoundException: commandService - NoSQL Database

Hello,
I want to deploy two SNs on one machine, and I chose different port(5030,5031), when I run "runadmin", the exceptions happened.
[sunyao#datanode1:~/oracle_nosql/tools]$ jps -m
25392 Jps -m
25145 kvstore-1.2.123.jar start -root KVROOT_2
23099 kvstore-1.2.123.jar start -root KVROOT
23265 ManagedService -root KVROOT/mystore/sn2 -store mystore -class RepNode -service rg1-rn2
25220 ManagedService -root KVROOT_2/mystore2/sn1 -store mystore2 -class Admin -service admin1
[sunyao#datanode1:~/oracle_nosql/tools]$ java -jar kv-1.2.123/lib/kvstore-1.2.123.jar ping -port 5030 -host datanode1
SNA at hostname: datanode1 registry port: 5030 has no available Admins or RNs registered.
[sunyao#datanode1:~/oracle_nosql/tools]$ java -jar kv-1.2.123/lib/kvstore-1.2.123.jar runadmin -port 5030 -host datanode1
Exception in thread "main" java.rmi.NotBoundException: commandService
at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at oracle.kv.impl.util.registry.RegistryUtils.getAdmin(RegistryUtils.java:197)
at oracle.kv.impl.admin.client.KVAdmin.connect(KVAdmin.java:883)
at oracle.kv.impl.admin.client.KVAdmin.main(KVAdmin.java:2131)
at oracle.kv.impl.util.KVStoreMain$6.run(KVStoreMain.java:188)
at oracle.kv.impl.util.KVStoreMain.main(KVStoreMain.java:319) 

This error message suggests that while you have a StorageNode listening on port 5030, there is no Admin associated with that StorageNode. Guessing that the configuration in KVROOT uses port number 5030, and KVROOT_2 uses port number 5031, your Admin is probably available on port 5031. I can't tell much more without knowing the contents of the config.xml files.
It seems unusual for the two storage nodes to be using consecutive port numbers, since you have to allocate several ports for each SN, but it's not impossible to have a configuration like that. I would double-check to be sure that the two storage nodes are using distinct sets of ports. 

In addition to Guy's comments, you may want to review the FAQ, at http://www.oracle.com/technetwork/database/nosqldb/learnmore/nosqldb-faq-518364.html. In particular, the entries:
- explaining the use of ports in NoSQL DB: http://www.oracle.com/technetwork/database/nosqldb/learnmore/nosqldb-faq-518364.html#WhatarealltheseportsWhendoIusewhichone
- how to create multiple SNs on one machine: http://www.oracle.com/technetwork/database/nosqldb/learnmore/nosqldb-faq-518364.html#HowtocreatemultipleStorageNodesonthesamemachine
may be useful.
You may also want to try the java -jar kvstore.jar ping -host <hostname> -port <port> on various nodes to get a sense of what you've managed to deploy, and which services are up. 

hi ,
I have started two admin service in one group:
but one admin service can't access from 5001, and the log is below:
[sunyao#datanode1:~/oracle_nosql/tools/KVROOT/mystore/log]$ cat admin2_0.log
02-09-12 17:48:46:696 CST INFO [admin2] Starting service process: admin2, Java command line arguments: [-XX:+DisableExplicitGC, -Xms96M, -Xmx96M]
02-09-12 17:48:46:720 CST INFO [admin2] Starting AdminService
02-09-12 17:48:46:881 CST INFO [admin2] Initializing Admin for store: mystore
02-09-12 17:48:46:883 CST INFO [admin2] Created new admin environment dir: KVROOT/mystore/sn2/admin2/env
02-09-12 17:48:46:884 CST INFO [admin2] JVM Runtime maxMemory (bytes): 96468992
02-09-12 17:48:46:889 CST INFO [admin2] Non-default JE properties for environment: {je.rep.vlsn.logCacheSize=128, je.rep.envUnknownStateTimeout=10 s, je.tree.maxDelta=10, je.log.faultReadSize=4096, je.rep.vlsn.distance=1000000, je.env.runEvictor=true, je.cleaner.minUtilization=40, je.rep.replicaAckTimeout=5 s, je.cleaner.threads=2, je.evictor.lruOnly=false, je.rep.replayMaxOpenDbHandles=100, je.log.writeQueueSize=2097152, je.evictor.criticalPercentage=105, je.log.iteratorReadSize=1048576, je.log.numBuffers=16, je.nodeMaxEntries=128, je.evictor.nodesPerScan=200, je.rep.preHeartbeatTimeoutMs=5000000000, je.checkpointer.bytesInterval=200000000, je.cleaner.lazyMigration=false, je.txn.durability=write_no_sync,write_no_sync,simple_majority, je.cleaner.readSize=1048576, je.rep.txnRollbackLimit=10, je.log.fileCacheSize=2000, je.log.fileMax=1073741824}
02-09-12 17:48:48:390 CST INFO [admin2] State change event: Thu Feb 09 17:48:47 CST 2012, State: REPLICA, Master: 1
02-09-12 17:48:48:852 CST INFO [admin2] Shutting down monitor collector
02-09-12 17:48:48:853 CST INFO [admin2] Replicated environment handle established. Cache size: 57881395, State: REPLICA
02-09-12 17:48:48:854 CST INFO [admin2] Starting Command service on rmi://datanode1:5000/commandService
02-09-12 17:48:48:950 CST INFO [admin2] Starting Web service on port 5001
02-09-12 17:48:49:183 CST INFO [admin2] jetty-7.4.0.v20110414
02-09-12 17:48:49:350 CST INFO [admin2] Extract jar:file:/home/sunyao/oracle_nosql/tools/kv-1.2.123/lib/kvstore-1.2.123.jar!/war/KVAdminUI/ to /tmp/jetty-0.0.0.0-5001-KVAdminUI-_-any-/webapp
02-09-12 17:48:50:65 CST INFO [admin2] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
02-09-12 17:48:50:120 CST INFO [admin2] started o.e.j.w.WebAppContext{,file:/tmp/jetty-0.0.0.0-5001-KVAdminUI-_-any-/webapp/},jar:file:/home/sunyao/oracle_nosql/tools/kv-1.2.123/lib/kvstore-1.2.123.jar!/war/KVAdminUI
02-09-12 17:48:50:201 CST INFO [admin2] Started SelectChannelConnector#0.0.0.0:5001 STARTING
02-09-12 17:48:50:203 CST INFO [admin2] Started AdminService
02-09-12 17:49:04:408 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 17:49:24:427 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 17:49:28:432 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 17:52:16:974 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 17:52:29:844 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 17:54:03:343 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 18:00:48:854 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 18:02:10:25 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 18:02:55:400 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 18:02:59:708 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 18:03:02:127 CST INFO [admin2] Redirect to master at http://namenode:5001
02-09-12 18:03:05:644 CST INFO [admin2] Redirect to master at http://namenode:5001
namenode is the hostname of 192.168.7.200, and I can access the admin service from http://192.168.7.200:5001
and the topology is
Pinging components of store mystore based upon topology sequence #612
mystore comprises 300 partitions and 3 Storage Nodes
Storage Node [sn1] on namenode:5000 Datacenter: Boston [dc1] Status: RUNNING Ver: 11gR2.1.2.123
Rep Node [rg1-rn1] Status: RUNNING,REPLICA at sequence number: 625 haPort: 5011
Storage Node [sn2] on datanode1:5000 Datacenter: Boston [dc1] Status: RUNNING Ver: 11gR2.1.2.123
Rep Node [rg1-rn2] Status: RUNNING,REPLICA at sequence number: 625 haPort: 5010
Storage Node [sn3] on datanode2:5000 Datacenter: Boston [dc1] Status: RUNNING Ver: 11gR2.1.2.123
Rep Node [rg1-rn3] Status: RUNNING,MASTER at sequence number: 625 haPort: 5010
Edited by: 912068 on 2012-2-9 上午2:06
and when I shutdown namenode SN and admin service , and access 185:5001, the exceptions are belowed:
Error
Dismiss
The Admin instance is unable to service this request, as it is not the master Admin instance. Furthermore, its state is such that it does not know the master Admin's forwarding address.
Edited by: 912068 on 2012-2-9 上午2:24 

If I understand you correctly, what you have described is normal behavior. It seems you have two Admins running. The one on namenode is the master, while the one on datanode1 is a replica. The Admin on datanode1 cannot service requests, because it is not the master. When runadmin tries to connect to the Admin on datanode1, the connection is automatically forwarded to the master Admin on namenode. That is shown by the log messages that say "Redirect to master".
When you shut down namenode, the Admin mastership cannot fail over to datanode1, because it can't form a majority. That is shown by the message about "The Admin instance is unable to service this request, as it is not the master Admin instance. Furthermore..."
In the FAQ, we recommend that you deploy at least three Admin replicas. This is the reason for that recommendation. If you have three replicas, and the master goes down, the remaining two can form a majority and choose a new master. If there are only two Admins, and one of them shuts down, then the remaining one cannot form a majority.
http://www.oracle.com/technetwork/database/nosqldb/learnmore/nosqldb-faq-518364.html#HowmanyAdminservicesshouldIdeploy 

Just to clarify, when Guy says you should have three replicas, he means 2 replicas and 1 master.
Charles Lamb 

Thanks.

Related

Problem with Glass Fish Server 3.1.1

Greetings !
Working on Apex 4.1, DB 10.2.0.3 g
-Some time when it was launched it went down, then i had to restart my DB server to get it back.
"HTTP Error 503 - Service unavailable".
- Some time same error occurs when people tried to login or while surfing the Apex application.
I dont know why it was happening, Please guide if anyone knows. 
Hi,
could you provide some additional information, such as log output from APEX Listener and database alert log?
Which APEX Listener version are you using and how is it configured?
-Udo 
I m using Glassfish 3.1.1 and apex listener version apex_listener.1.1.3, downloaded from oracle.com and dont know ho to see apex listener log output 
[...] dont know ho to see apex listener log outputIf your GlassFish runs with default configuration, you'll find APEX Listeners log output in the server.log for your GlassFish domain.
The database alert log will usually be in +$ORACLE_BASE/diag/rdbms/<instance>/<sid>/trace/alert_<sid>.log+ as plaintext.
Of course, you shouldn't post the whole alert log. But if you see any error message for the time you receive your 503, this would be helpful for troubleshooting.
Which APEX Listener version are you using and how is it configured ?That part is still unanswered...
-Udo 
Glassfish Server Log in Domain Folder
[#|2012-07-17T16:08:20.953+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=13;_ThreadName=FelixStartLevel;|Virtual server server loaded system default web module|#]
[#|2012-07-17T16:08:20.953+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=13;_ThreadName=FelixStartLevel;|Virtual server server loaded system default web module|#]
[#|2012-07-17T16:08:20.953+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=13;_ThreadName=Thread-1;|Virtual server server loaded system default web module|#]
[#|2012-07-17T16:08:25.656+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=Thread-1;|Using config file: C:\Users\ADMINI~1\AppData\Local\Temp\2\apex\apex-config.xml|#]
[#|2012-07-17T16:08:25.671+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=Thread-1;|APEX Listener version : 1.1.3.243.11.40|#]
[#|2012-07-17T16:08:25.671+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=Thread-1;|APEX Listener server info: GlassFish Server Open Source Edition 3.0.1|#]
[#|2012-07-17T16:08:25.906+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=13;_ThreadName=FelixStartLevel;|Loading application apex at /apex|#]
[#|2012-07-17T16:08:25.906+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=13;_ThreadName=FelixStartLevel;|Loading application apex at /apex|#]
[#|2012-07-17T16:08:25.906+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=13;_ThreadName=Thread-1;|Loading application apex at /apex|#]
[#|2012-07-17T16:08:25.906+0500|INFO|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=13;_ThreadName=Thread-1;|Loading apex Application done is 8625 ms|#]
[#|2012-07-17T16:08:25.906+0500|INFO|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=13;_ThreadName=Thread-1;|GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(13453ms) startup services(10063ms) total(23516ms)|#]
[#|2012-07-17T16:08:25.953+0500|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=47;_ThreadName=Thread-1;|Binding RMI port to *:8686|#]
[#|2012-07-17T16:08:27.140+0500|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=47;_ThreadName=Thread-1;|JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://WIN-1HGCSI7ALBI:8686/jndi/rmi://WIN-1HGCSI7ALBI:8686/jmxrmi|#]
[#|2012-07-17T16:08:28.218+0500|INFO|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=58;_ThreadName=Thread-1;|[Thread[GlassFish Kernel Main Thread,5,main]] started|#]
[#|2012-07-17T16:08:28.328+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=62;_ThreadName=Thread-1;|{felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = E:\glassfishv3\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\ADMINI~1\AppData\Local\Temp\2\fileinstall--1172907032374319409, felix.fileinstall.filter = null}|#]
[#|2012-07-17T16:08:28.328+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=61;_ThreadName=Thread-1;|{felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = E:\glassfishv3\glassfish\modules\autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\ADMINI~1\AppData\Local\Temp\2\fileinstall-8605778736894130273, felix.fileinstall.filter = null}|#]
[#|2012-07-17T16:08:28.375+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=61;_ThreadName=Thread-1;|Started bundle: file:/E:/glassfishv3/glassfish/modules/autostart/osgi-web-container.jar|#]
[#|2012-07-17T16:08:33.375+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=61;_ThreadName=Thread-1;|Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg|#]
[#|2012-07-17T16:08:33.390+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=61;_ThreadName=Thread-1;|Installed E:\glassfishv3\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg|#]
[#|2012-07-17T16:08:33.390+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Thread-1;|{felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = E:\glassfishv3\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\ADMINI~1\AppData\Local\Temp\2\fileinstall--4534421116184520368, felix.fileinstall.filter = null}|#]
[#|2012-07-17T16:08:54.046+0500|INFO|glassfish3.0.1|null|_ThreadID=68;_ThreadName=Thread-1;|The Admin Console is already installed, but not yet loaded.|#]
[#|2012-07-17T16:08:54.046+0500|INFO|glassfish3.0.1|null|_ThreadID=68;_ThreadName=Thread-1;|The Admin Console is loading...|#]
[#|2012-07-17T16:08:55.921+0500|INFO|glassfish3.0.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=68;_ThreadName=Thread-1;|Initializing Mojarra 2.0.2 (FCS b10) for context ''|#]
[#|2012-07-17T16:08:58.109+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=68;_ThreadName=Thread-23;|Loading application __admingui at /|#]
[#|2012-07-17T16:08:58.109+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=68;_ThreadName=Thread-1;|Loading application __admingui at /|#]
[#|2012-07-17T16:08:58.109+0500|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=68;_ThreadName=Thread-23;|Loading application __admingui at /|#]
[#|2012-07-17T16:08:58.109+0500|INFO|glassfish3.0.1|null|_ThreadID=68;_ThreadName=Thread-1;|Loading __admingui Application done is 4063 ms|#]
[#|2012-07-17T16:08:58.109+0500|INFO|glassfish3.0.1|null|_ThreadID=68;_ThreadName=Thread-1;|The Admin Console application is loaded.|#]
[#|2012-07-17T16:09:00.031+0500|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=70;_ThreadName=Thread-1;|AMX ComplianceMonitor: ValidationLevel = full, UnregisterNonCompliant = false, LogInaccessibleAttributes = true|#]
[#|2012-07-17T16:09:00.421+0500|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=73;_ThreadName=Thread-1;|AMX config read, domain config registered as amx:pp=/,type=domain|#]
[#|2012-07-17T16:09:00.578+0500|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=76;_ThreadName=Thread-1;|J2EEDomain registered at amx:pp=/,type=J2EEDomain,j2eeType=J2EEDomain,name=amx|#]
[#|2012-07-17T16:09:00.578+0500|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=70;_ThreadName=Thread-1;|AMXStartupServiceNew: AMX ready for use, DomainRoot = amx:pp=,type=domain-root|#]
[#|2012-07-17T16:09:16.984+0500|INFO|glassfish3.0.1|org.glassfish.admingui|_ThreadID=80;_ThreadName=Thread-1;|admin console: initSessionAttributes()|#]
[#|2012-07-17T16:09:39.109+0500|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.web.security|_ThreadID=66;_ThreadName=Thread-1;|Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for .|#]
[#|2012-07-17T16:09:39.109+0500|WARNING|glassfish3.0.1|org.apache.catalina.connector.Request|_ThreadID=66;_ThreadName=Thread-1;|PWC4011: Unable to set request character encoding to UTF-8 from context , because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
[#|2012-07-17T16:13:23.022+0500|INFO|glassfish3.0.1|org.glassfish.admingui|_ThreadID=70;_ThreadName=Thread-1;|Update Component count = 47|#]
[#|2012-07-17T16:13:46.944+0500|INFO|glassfish3.0.1|org.glassfish.admingui|_ThreadID=82;_ThreadName=Thread-1;|Update Component count = 47|#]
[#|2012-07-17T16:15:20.717+0500|INFO|glassfish3.0.1|org.glassfish.admingui|_ThreadID=80;_ThreadName=Thread-1;|Update Component count = 47|#]
[#|2012-07-17T16:15:24.577+0500|INFO|glassfish3.0.1|org.glassfish.admingui|_ThreadID=81;_ThreadName=Thread-1;|Update Component count = 47|#]
[#|2012-07-17T16:15:51.647+0500|INFO|glassfish3.0.1|org.glassfish.admingui|_ThreadID=66;_ThreadName=Thread-1;|Update Component count = 47|#]"
DB Alert
"Dump file e:\oracle\product\10.2.0\admin\orcl\bdump\alert_orcl.log
Fri Jun 08 06:05:38 2012
ORACLE V10.2.0.3.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V6.0 Service Pack 1
CPU : 2 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:1397M/1993M, Ph+PgF:3815M/4257M, VA:1922M/2047M
Fri Jun 08 06:05:38 2012
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.3.0.
System parameters with non-default values:
processes = 150
sga_target = 595591168
control_files = E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL02.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL03.CTL
db_block_size = 8192
compatible = 10.2.0.3.0
db_file_multiblock_read_count= 16
db_recovery_file_dest = E:\oracle\product\10.2.0\flash_recovery_area
db_recovery_file_dest_size= 2147483648
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=orclXDB)
job_queue_processes = 10
audit_file_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\ADUMP
background_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\BDUMP
user_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\UDUMP
core_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\CDUMP
db_name = orcl
open_cursors = 300
pga_aggregate_target = 198180864
PMON started with pid=2, OS id=2168
PSP0 started with pid=3, OS id=2816
MMAN started with pid=4, OS id=2772
DBW0 started with pid=5, OS id=1228
LGWR started with pid=6, OS id=2160
CKPT started with pid=7, OS id=2952
SMON started with pid=8, OS id=2940
RECO started with pid=9, OS id=3428
CJQ0 started with pid=10, OS id=2392
MMON started with pid=11, OS id=2408
Fri Jun 08 06:05:38 2012
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
MMNL started with pid=12, OS id=2980
Fri Jun 08 06:05:38 2012
starting up 1 shared server(s) ...
Fri Jun 08 06:05:39 2012
The input backup piece E:\ORACLE\PRODUCT\10.2.0\DB_1\ASSISTANTS\DBCA\TEMPLATES\SEED_DATABASE.DFB is in compressed format.
Full restore complete of datafile 4 to datafile copy E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF. Elapsed time: 0:00:01
checkpoint is 521802
Full restore complete of datafile 2 to datafile copy E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF. Elapsed time: 0:00:01
checkpoint is 521802
Fri Jun 08 06:06:01 2012
Full restore complete of datafile 3 to datafile copy E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF. Elapsed time: 0:00:22
checkpoint is 521802
last deallocation scn is 521589
Fri Jun 08 06:06:15 2012
Full restore complete of datafile 1 to datafile copy E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF. Elapsed time: 0:00:36
checkpoint is 521802
last deallocation scn is 515202
Fri Jun 08 06:06:16 2012
Create controlfile reuse set database "orcl"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
Datafile
'E:\oracle\product\10.2.0\oradata\orcl\SYSTEM01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\UNDOTBS01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\SYSAUX01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\USERS01.DBF'
LOGFILE GROUP 1 ('E:\oracle\product\10.2.0\oradata\orcl\redo01.log') SIZE 51200K,
GROUP 2 ('E:\oracle\product\10.2.0\oradata\orcl\redo02.log') SIZE 51200K,
GROUP 3 ('E:\oracle\product\10.2.0\oradata\orcl\redo03.log') SIZE 51200K RESETLOGS
WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
Default Temporary Tablespace will be necessary for a locally managed database in future release
Setting recovery target incarnation to 1
Fri Jun 08 06:06:17 2012
Successful mount of redo thread 1, with mount id 1313192024
Fri Jun 08 06:06:17 2012
Completed: Create controlfile reuse set database "orcl"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
Datafile
'E:\oracle\product\10.2.0\oradata\orcl\SYSTEM01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\UNDOTBS01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\SYSAUX01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\USERS01.DBF'
LOGFILE GROUP 1 ('E:\oracle\product\10.2.0\oradata\orcl\redo01.log') SIZE 51200K,
GROUP 2 ('E:\oracle\product\10.2.0\oradata\orcl\redo02.log') SIZE 51200K,
GROUP 3 ('E:\oracle\product\10.2.0\oradata\orcl\redo03.log') SIZE 51200K RESETLOGS
Shutting down instance: further logons disabled
Fri Jun 08 06:06:17 2012
Stopping background process CJQ0
Fri Jun 08 06:06:18 2012
Stopping background process MMNL
Fri Jun 08 06:06:19 2012
Stopping background process MMON
Fri Jun 08 06:06:20 2012
Shutting down instance (immediate)
License high water mark = 1
Fri Jun 08 06:06:20 2012
Stopping Job queue slave processes
Fri Jun 08 06:06:20 2012
Job queue slave processes stopped
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Fri Jun 08 06:06:22 2012
ALTER DATABASE CLOSE NORMAL
ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
Fri Jun 08 06:06:22 2012
ALTER DATABASE DISMOUNT
Completed: ALTER DATABASE DISMOUNT
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Fri Jun 08 06:06:25 2012
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.3.0.
System parameters with non-default values:
processes = 150
sga_target = 595591168
control_files = E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL02.CTL, E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL03.CTL
db_block_size = 8192
compatible = 10.2.0.3.0
db_file_multiblock_read_count= 16
db_recovery_file_dest = E:\oracle\product\10.2.0\flash_recovery_area
db_recovery_file_dest_size= 2147483648
norecovery_through_resetlogs= TRUE
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=orclXDB)
audit_file_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\ADUMP
background_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\BDUMP
user_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\UDUMP
core_dump_dest = E:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\CDUMP
db_name = orcl
open_cursors = 300
pga_aggregate_target = 198180864
PMON started with pid=2, OS id=1936
PSP0 started with pid=3, OS id=3048
MMAN started with pid=4, OS id=2932
DBW0 started with pid=5, OS id=3060
LGWR started with pid=6, OS id=2956
CKPT started with pid=7, OS id=2988
SMON started with pid=8, OS id=3036
RECO started with pid=9, OS id=3108
MMON started with pid=10, OS id=2672
Fri Jun 08 06:06:25 2012
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
MMNL started with pid=11, OS id=3080
Fri Jun 08 06:06:25 2012
starting up 1 shared server(s) ...
Fri Jun 08 06:06:26 2012
Create controlfile reuse set database "orcl"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
Datafile
'E:\oracle\product\10.2.0\oradata\orcl\SYSTEM01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\UNDOTBS01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\SYSAUX01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\USERS01.DBF'
LOGFILE GROUP 1 ('E:\oracle\product\10.2.0\oradata\orcl\redo01.log') SIZE 51200K,
GROUP 2 ('E:\oracle\product\10.2.0\oradata\orcl\redo02.log') SIZE 51200K,
GROUP 3 ('E:\oracle\product\10.2.0\oradata\orcl\redo03.log') SIZE 51200K RESETLOGS
Fri Jun 08 06:06:26 2012
WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
Default Temporary Tablespace will be necessary for a locally managed database in future release
Setting recovery target incarnation to 1
Fri Jun 08 06:06:27 2012
Successful mount of redo thread 1, with mount id 1313194338
Fri Jun 08 06:06:27 2012
Completed: Create controlfile reuse set database "orcl"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
Datafile
'E:\oracle\product\10.2.0\oradata\orcl\SYSTEM01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\UNDOTBS01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\SYSAUX01.DBF',
'E:\oracle\product\10.2.0\oradata\orcl\USERS01.DBF'
LOGFILE GROUP 1 ('E:\oracle\product\10.2.0\oradata\orcl\redo01.log') SIZE 51200K,
GROUP 2 ('E:\oracle\product\10.2.0\oradata\orcl\redo02.log') SIZE 51200K,
GROUP 3 ('E:\oracle\product\10.2.0\oradata\orcl\redo03.log') SIZE 51200K RESETLOGS
Fri Jun 08 06:06:27 2012
Stopping background process MMNL
Fri Jun 08 06:06:28 2012
Stopping background process MMON
Starting background process MMON
Starting background process MMNL
MMON started with pid=10, OS id=2088
Fri Jun 08 06:06:29 2012
ALTER SYSTEM enable restricted session;
MMNL started with pid=11, OS id=2072
Fri Jun 08 06:06:29 2012
alter database "orcl" open resetlogs
Fri Jun 08 06:06:29 2012
RESETLOGS after incomplete recovery UNTIL CHANGE 521802
Fri Jun 08 06:06:29 2012
Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_2948.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified. 
using Glassfish 3.1.1 and apex listener version apex_listener.1.1.3.
Installed Glassfish and after configuration i deployed apex.war file in glassfish. 
[#|2012-07-17T16:08:25.656+0500|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=Thread-1;|Using config file: C:\Users\ADMINI~1\AppData\Local\Temp\2\apex\apex-config.xml|#]This could be a possible cause for what you experience: You haven't configured your APEX Listener to use a non-temporary location for its config file. So each time your temp folder gets cleaned up, your APEX Listener loses its configuration and will stop working until you've restarted and reconfigured it.
You didn't mention that you have to reconfigure after you receive this error, so I'm not sure this actually is the (only) reason on your system. Since I don't see the other usual log messages from APEX Listener startup I conclude that at least at the time you've captured the log APEX Listener hasn't been configured yet.
A side note: You seem to run the service on behalf of an admin account, which is not recommended.
[#|2012-07-17T16:08:25.906+0500|INFO|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=13;_ThreadName=Thread-1;|GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(13453ms) startup services(10063ms) total(23516ms)|#]Another side note: It's actually GlassFish 3.0.1, not 3.1.1. You may want to check if what you run is what you expect it to be...
I don't see any relevant entry in your alert log. It contains some hints on general issues though:
WARNING: Default Temporary Tablespace not specified in CREATE DATABASE commandThough not mandatory, it's recommended to define a default temporary tablespace.
Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_2948.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.Seems something messed up your redo log. You should definetly fix this.
-Udo 
After getting Http 503 error i have to restart my application server on which glassfish and apex listeneer is deployed and after restarting i have to again configure the listener. You are right its an issue non temporary location for its config file..
But now how i could fix that. 
Hi,
>
After getting Http 503 error i have to restart my application server on which glassfish and apex listeneer is deployed and after restarting i have to again configure the listener. You are right its an issue non temporary location for its config file..
<b>But now how i could fix that.</b>
>
See Setting the Value of the config.dir Parameter
Cheers,

ICS Execution Agent Failed to install

I tied to install the on-premise agent; however, the process consistently fails with the same error. Would like to discuss with your group to determine what may be causing the failure. Please see log below, and also steps taken to diagnose connection errorAlso, would also like to confirm that the parameters I am entering are correct, if not, what are the correct parameters. <DEBUG INFO>  LOG IN INPUTS TO INSTALL PROMPTS:------------------------------------ CDIR /home/oracle mkdir: cannot create directory `./tmp': File exists Checking Disk space requirements.. Is this a new install or upgrade? (Enter new or upgrade) new Enter your ICS subscription URL for authentication: Ex: https://host.oracle.com:7002/ics https://cleanaddress-runneredq.integration.us2.oraclecloud.com/ics Enter ICS subscription Username:******************ablake#runnertechnologies.com Enter ICS subscription Password: ************* https://cleanaddress-runneredq.integration.us2.oraclecloud.com https://cleanaddress-runneredq.integration.us2.oraclecloud.com/icsapis/v1/agent/environment Enter HTTPS Proxy Server Host Name:  Enter HTTPS Proxy Server Port Number:  majorVersion: 1 minorVersion: 0 Authentication successful. Starting ICS On Premise Install!! Chef exists! Continuing with the install! What do you want to call this Execution Agent? clnaddrICSOnPremExecAgt Default Install Path for ICS Execution Agent: /home/oracle/ICSOPInstall Press enter to accept default path or Enter a new Install path: /u01/app/icsexecutionagent Current user is: root Press enter to accept current user or Enter the user name(cannot be root) to be used for install: oracle  Default group is: Press enter to accept default group or Enter the group(groups <user> will list the groups of an user) of the user to be used for install: oinstall  Enter Password (should be atleast 8 characters long and have a number or a special character) for the default user weblogic: Icecap88 length: 8 valid Enter Database Host Name: opics.runnertech.com Enter Database Port: 1522 Enter Database User Name (with sysdba role. This user will be used by RCU to create schemas.): system Enter Database User Password: Icecap88 Enter Database ServiceName: opicsdb.runnertech.com Please make sure all the DB details are correct & confirm login success using sqlplus or sqldeveloper outside of this installer before proceeding. Default password for ICSOP schemas created by RCU: welcome Press enter to accept default password or Enter a new password: Icecap88 appid_username: RUNNEREDQ_CLEANADDRESS_INTEGRATIONSERVICE_AGENT_APPID Enter front end host: opics.runnertech.com Enter front end port: 7001 Enter front end ssl port: 7002  AFTER INPUTS COMPLETED GETTING FOLLOWING:--------------------------------------------  ICS OP Install Home: /u01/app/icsexecutionagent/ICSOPInstall ICS OP Install tmp: /u01/app/icsexecutionagent/ICSOPInstall/tmp User: oracle Group: oinstall ICS OP Server Host: opics.runnertech.com ICS OP HTTP Port: 7001 ICS OP SSL Port: 7002 ICS OP Domain Name: expanded_domain ICS OP User: weblogic ICS Database Host: opics.runnertech.com ICS Database Port: 1522 ICS Database Service Name: opicsdb.runnertech.com ICS Database User: system ICS Database Connect String: //opics.runnertech.com:1522/opicsdb.runnertech.com Execution Agent Name: clnaddrICSOnPremExecAgt Execution Agent ID: OPICS.RUNNERTECH.COM ### cookbook-ics-op :: setup_expandeddomain :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-common :: init :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-common :: init :: 2017-12-11 10:51:38 -0500 : Finished compile phase ### cookbook-ics-binaries :: default :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-common :: download_binaries :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-common :: download_binaries :: 2017-12-11 10:51:38 -0500 : Finished compile phase ### cookbook-ics-common :: install_wls :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-common :: install_java :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-common :: install_java :: 2017-12-11 10:51:38 -0500 : Finished compile phase ### cookbook-ics-common :: install_wls :: 2017-12-11 10:51:38 -0500 : Finished compile phase ### cookbook-ics-binaries :: apply_patches :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-binaries :: apply_patches :: 2017-12-11 10:51:38 -0500 : Finished compile phase ### cookbook-ics-binaries :: default :: 2017-12-11 10:51:38 -0500 : Finished compile phase ### cookbook-ics-database :: default :: 2017-12-11 10:51:38 -0500 : Starting compile phase ### cookbook-ics-database :: default :: 2017-12-11 10:51:38 -0500 : Finished compile phase ### cookbook-ics-op :: setup_expandeddomain :: 2017-12-11 10:51:38 -0500 : Finished compile phase  ================================================================================ Error executing action `run` on resource 'execute[Run RCU]' ================================================================================  Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '1' ---- Begin output of            export JAVA_HOME=/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/jdk export RCU_LOG_LOCATION=/u01/app/icsexecutionagent/ICSOPInstall/tmp export RCU_LOG_LEVEL=TRACE export RCU_TIMESTAMP_LOG_DIR=false set -o pipefail sh /u01/app/icsexecutionagent/ICSOPInstall/tmp/runrcu.sh "/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/app/Oracle/Middleware/Oracle_Home/oracle_common" "opics.runnertech.com:1522:opicsdb.runnertech.com" "system" "Icecap88" ICSOP Icecap88 TEMP "TEMP" "drop_create" 2>&1 | logger -t cookbook-ics-database ---- STDOUT: STDERR: ---- End output of export JAVA_HOME=/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/jdk export RCU_LOG_LOCATION=/u01/app/icsexecutionagent/ICSOPInstall/tmp export RCU_LOG_LEVEL=TRACE export RCU_TIMESTAMP_LOG_DIR=false set -o pipefail sh /u01/app/icsexecutionagent/ICSOPInstall/tmp/runrcu.sh "/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/app/Oracle/Middleware/Oracle_Home/oracle_common" "opics.runnertech.com:1522:opicsdb.runnertech.com" "system" "Icecap88" ICSOP Icecap88 TEMP "TEMP" "drop_create" 2>&1 | logger -t cookbook-ics-database ---- Ran export JAVA_HOME=/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/jdk export RCU_LOG_LOCATION=/u01/app/icsexecutionagent/ICSOPInstall/tmp export RCU_LOG_LEVEL=TRACE export RCU_TIMESTAMP_LOG_DIR=false set -o pipefail sh /u01/app/icsexecutionagent/ICSOPInstall/tmp/runrcu.sh "/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/app/Oracle/Middleware/Oracle_Home/oracle_common" "opics.runnertech.com:1522:opicsdb.runnertech.com" "system" "Icecap88" ICSOP Icecap88 TEMP "TEMP" "drop_create" 2>&1 | logger -t cookbook-ics-database returned 1  Resource Declaration: --------------------- # In /u01/app/icsexecutionagent/ICSOPInstall/chef/cookbooks/cookbook-ics-database/recipes/default.rb  54:    execute "Run RCU" do 55:      user  ics_user 56:      group ics_group 57:      command <<-EOH 58:            export JAVA_HOME=#{node[:ics][:icsop_home]}/jdk 59:            export RCU_LOG_LOCATION=#{node[:ics][:tmp_dir]} 60:            export RCU_LOG_LEVEL=TRACE 61:            export RCU_TIMESTAMP_LOG_DIR=false 62:            set -o pipefail 63:            sh #{ics_tmp_dir}/runrcu.sh "#{node[:ics][:oracle_home]}/oracle_common" "#{db_connectstring}" "#{node[:ics][:db_user]}" "#{node[:ics][:db_password]}" #{node[:ics][:db_schemaprefix]} #{node[:ics][:db_schemapassword]} #{node[:ics][:db_tablespace]} "TEMP"  "drop_create" 2>&1 | logger -t cookbook-ics-database 64:      EOH 65:      action :run 66:    end 67:  Compiled Resource: ------------------ # Declared in /u01/app/icsexecutionagent/ICSOPInstall/chef/cookbooks/cookbook-ics-database/recipes/default.rb:54:in `from_file'  execute("Run RCU") do action [:run] retries 0 retry_delay 2 default_guard_interpreter :execute command "\t\texport JAVA_HOME=/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/jdk\n\t\texport RCU_LOG_LOCATION=/u01/app/icsexecutionagent/ICSOPInstall/tmp\n\t\texport RCU_LOG_LEVEL=TRACE\n\t\texport RCU_TIMESTAMP_LOG_DIR=false\n\t\tset -o pipefail\n\t\tsh /u01/app/icsexecutionagent/ICSOPInstall/tmp/runrcu.sh \"/u01/app/icsexecutionagent/ICSOPInstall/ICSOP/app/Oracle/Middleware/Oracle_Home/oracle_common\" \"opics.runnertech.com:1522:opicsdb.runnertech.com\" \"system\" \"Icecap88\" ICSOP Icecap88 TEMP \"TEMP\"  \"drop_create\" 2>&1 | logger -t cookbook-ics-database\n" backup 5 group "oinstall" returns 0 user "oracle" declared_type :execute cookbook_name :"cookbook-ics-database" recipe_name "default" end  Agent Execution install Failed. Log for this install is available at: /u01/app/icsexecutionagent/ICSOPInstall/tmp/installstacktrace.log   CONFIRMED THE DATABASE CONNECTION INFORMATION WORKS:-------------------------------------------------------  [oracle#opics ~]$ sqlplus system/Icecap88#//opics.runnertech.com:1522/opicsdb.runnertech.com  SQL*Plus: Release 12.2.0.1.0 Production on Mon Dec 11 10:21:13 2017  Copyright (c) 1982, 2016, Oracle.  All rights reserved.  Last Successful login time: Mon Dec 11 2017 10:13:43 -05:00  Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production  SQL> select sysdate from dual;  SYSDATE --------- 11-DEC-17  SQL><DEBUG INFO>
Can you attach the log from this location - Agent Execution install Failed. Log for this install is available at: /u01/app/icsexecutionagent/ICSOPInstall/tmp/installstacktrace.log?

Oracle HA Setup - how to define resource dependency !

- I have one resource group :
oracle-rg- I created three resource in this resource group:
oracle-ha-rs ( type SUNW.HAStoragePlus)
oracle-listener-1 ( type SUNW.oracle_listener )
oracle-server-1 ( type SUNW.oracle_server )Now how do I define dependency between the resources? or a specific sequest when switching?
I am asking this because everything are working okay(except shutdown). When I switch, Oracle comes up on failover Node and vice-versa.
But during switch the oracle-ha-rs resource goes offline first, and then the resource oracle-server-1 and oracle-listener-1
Since the filesystem is unmounted FIRST it crash the oracle instance(oracle shutdown cmds are fired .
Question: I want to sequence it as follows during switching how do I do this?
Current Node:
- oracle-server-1 : Stop Oracle server
- oracle-listener-1 : stop listener
- oracle-ha-rs : Unmount filesystem
Failover Node:
- oracle-ha-rs : Mount filesystem
- oracle-server-1 : Start Oracle server
- oracle-listener-1 : Start listener
Sun Log
Jul 22 17:59:50 SC[SUNWscor.oracle_server.monitor_stop]:oracle-rg:oracle-server-1: Stopping fault monitor using pmfadm tag ORASERV_MON_oracle-server-1
Jul 22 17:59:51 SC[SUNWscor.oracle_server.stop]:oracle-rg:oracle-server-1: Using method 'run_setuid_prog' to execute shutdown commands
Jul 22 17:59:51 SC[SUNWscor.oracle_server.stop]:oracle-rg:oracle-server-1: Stopping oracle server using shutdown immediate
Shutting down Oracle instance: ORAHA  : /u01/binary/oracle/product/10.2.0/db_1.
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jul 22 17:59:51 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected.
SQL> ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Solaris-AMD64 Error: 2: No such file or directory
SQL> Disconnected
Executing command: /opt/SUNWscor/oracle_server/bin/oracle_server_manage shutdown immediate
Jul 22 17:59:56 SC[SUNWscor.oracle_server.stop]:oracle-rg:oracle-server-1: Server stopped successfully.Oracle Log
Wed Jul 22 12:46:50 2009
Completed: ALTER DATABASE OPEN
Wed Jul 22 17:59:53 2009
Errors in file /u01/binary/oracle/product/10.2.0/db_1/rdbms/log/oraha_ckpt_16333.trc:
ORA-00206: error in writing (block 3, # blocks 1) of control file
ORA-00202: control file: '/global/u01/oradata/ora_control2'
ORA-27063: number of bytes read/written is incorrect
Solaris-AMD64 Error: 5: I/O error
Additional information: -1
Additional information: 16384
ORA-00206: error in writing (block 3, # blocks 1) of control file
ORA-00202: control file: '/global/u01/oradata/ora_control1'
ORA-27063: number of bytes read/written is incorrect
Solaris-AMD64 Error: 5: I/O error
Additional information: -1
Additional information: 16384
Wed Jul 22 17:59:53 2009
Errors in file /u01/binary/oracle/product/10.2.0/db_1/rdbms/log/oraha_ckpt_16333.trc:
ORA-00221: error on write to control file
ORA-00206: error in writing (block 3, # blocks 1) of control file
ORA-00202: control file: '/global/u01/oradata/ora_control2'
ORA-27063: number of bytes read/written is incorrect
Solaris-AMD64 Error: 5: I/O error
Additional information: -1
Additional information: 16384
ORA-00206: error in writing (block 3, # blocks 1) of control file
ORA-00202: control file: '/global/u01/oradata/ora_control1'
ORA-27063: number of bytes read/written is incorrect
Solaris-AMD64 Error: 5: I/O error 
E.g. using this:
# clresource create -g resource-group \
-t SUNW.oracle_listener \
-p LISTENER_NAME=listener \
-p ORACLE_HOME=Oracle-home \
-p resource_dependencies=storageplus-resource resource
Copied from the docs at http://docs.sun.com/app/docs/doc/820-3041/chdiggib "Sun Cluster for Data Service Oracle Guide"
Regards
Hartmut 
Thank you. I used sc* cmds(scrgadm) and manuls had example of dependency between resource-groups.
I will check the cl* cmds. Thanks again. 
Using sc* commands or cl* commands make no difference here.
But one must understand the difference between resource_dependencies, which is what you need and RG_affinities, which defines dependencies between resource groups.
Regards
Hartmut 
resource_dependencies vs RG_affinities, which defines dependencies between resource groups.Got it.... Thank you again, I got lost in the manuals.

Error: create tables and insert into oracle nosql db

Hi! i'm Tin, can i ask you some questions?I using oracle nosql db 12cR1 on oracle linux 6.4, it run really stable, but i have some problem when i create tables(datatype Date) and insert data into nosql db. I have fixed many way but not effective. please help me! Thanks!The Error below:Error 1:kv-> table create -name customers customers-> add-field -name userId -type stringcustomers-> add-field -name fullname -type stringcustomers-> add-field -name birthday -type DATEInvalid argument: DATE  Usage: add-field -type <type> -name <name> [-not-nullable]   [-default <value>] [-max <value>] [-min <value>]   [-max-exclusive] [-min-exclusive] [-desc <description>]   [-size <size>] [-enum-values <value[,value[,...]]>]  <type>: INTEGER, LONG, DOUBLE, FLOAT, STRING, BOOLEAN, BINARY,  FIXED_BINARY, ENUM.Error 2: I have User table, and cerate extra child table is User.Folder table.....but i cannot insert into data this tablekv-> put table -name User.FolderUser.Folder-> add-value -field folderId -value F1User.Folder-> add-value -field name -value Report.rarUser.Folder-> show{  "folderId" : "F1",  "name" : "Report.rar"}User.Folder-> exitError handling command exit: Primary key fields are specified out of orderUser.Folder-> 
Hi,Tin I can answer you first question.There is no date data type in Oracle Nosql.That is obvious:
Hi! Thanks for your answer.I have fixed Error 2.For Error 1! Could you tell me which datatype replaced for 'DATE'?as far as I know, there are some sources to mention 'DATE' datatype in NoSQL DB.Is there no enough packages i have installed?that's contradictory!
Hi, I usually deal with this format date: 13-01-01 00:00:14.I turn the date of string data type into milliseconds of long data type.The function is showed below:public static long StringToLong(String time){SimpleDateFormat format = new SimpleDateFormat("yy-MM-dd H:m:s");format.setTimeZone(TimeZone.getTimeZone("UTC"));long result=0;try{Date date = format.parse(time);Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));            cal.setTime(date);            result = cal.getTimeInMillis();}catch(Exception e){System.out.println("StringToLong error");}return result;} What's more, you can just store the date as a string datat type into a db.The date of string data type can be directly compared to each other.You can see here:http://docs.oracle.com/cd/NOSQL/html/GettingStartedGuideTables/indexread.html
Good Answer! Thanks so much!
Hi! How are you!i have a problem when i create table again!the problem:i have installed eclipse SDK 3.3.1 va java version 7, oracle nosqldb 12CR1, everything is true. I have some classes java on eclipse to create tables in nosql db when i connected to, but when i run these classes, i could connect to oracle nosql db, but i couldn't create tables with the following problems://////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////[oracle#bigdata scripts]$ cat createTables.sh#First create schema definitions in the databasejava -cp ../bin:../lib/kvclient.jar com.oracle.email.init.CreateSchema localhost:5000 kvstore[oracle#bigdata scripts]$ ./createTables.sh================================================================================  Successfully Connected to Oracle NoSQL DB # localhost:5000/kvstore================================================================================There is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultException///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////sorry!I'm only a starter and don't know so much about java, please help  me!
Hi, You can use the command to check an SNA on the host where  the db is deployed:java -Xmx256m -Xms256m -jar KVHOME/lib/kvstore.jar ping -port admin_port -host server_ip  What's more,using 'jps -m' tools provided by java in the CLI to test the whether the services is  launched or not.Please provide the output information of these commands for further analysis.
Hi, You can see herehttp://docs.oracle.com/cd/NOSQL/html/AdminGuide/install-config.html The following is the part of screenshorts. 
Hi! Thanks your answer.hey, after 2 days researched Installation Confiuration document and fixed the problem, but there is still this problem.I have run following you and met that problem again!Please explain to me, Thanks so much!///////////////////////////////////////////////////////////////////////////////////////// [oracle#bigdata scripts]$ java -jar $KVHOME/lib/kvstore.jar ping -port 5000 -host 192.168.56.101Pinging components of store kvstore based upon topology sequence #14Time: 2015-04-15 11:26:31 UTCkvstore comprises 10 partitions and 1 Storage NodesStorage Node [sn1] on 192.168.56.101:5000    Zone: [name=KVLite id=zn1 type=PRIMARY]    Status: RUNNING   Ver: 12cR1.3.0.14 2014-07-14 01:11:18 UTC  Build id: 94b3e9a4bd99  Rep Node [rg1-rn1] Status: RUNNING,MASTER at sequence number: 319 haPort: 5006//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////[oracle#bigdata scripts]$ jps -m6556 org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /home/oracle/Downloads/eclipse/eclipse -name Eclipse --launcher.library /home/oracle/Downloads/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.1.R33x_v20070828/eclipse_1020.so -startup /home/oracle/Downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -exitdata 17800f -vm /usr/bin/java -vmargs -Xms40m -Xmx256m -jar /home/oracle/Downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar6629 kvstore.jar kvlite -root /u02/kvroot -host localhost7033 kvstore.jar kvlite -root /u02/kvroot -host 192.168.56.1017191 Jps -m/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////[oracle#bigdata scripts]$ lltotal 24-rwxrwx---. 1 oracle oinstall  70 Nov 18 18:18 admin.sh-rwxr-xr-x. 1 oracle oinstall 143 Jan 13 17:12 createTables.sh-rwxrwx---. 1 oracle oinstall 203 Nov 21 18:22 resetEnv.sh-rwxr-xr-x. 1 oracle oinstall 189 Jan 14 15:58 runEmailApp.sh-rwxrwx---. 1 oracle oinstall  83 Jan  7 15:47 runScript.sh-rwxr-xr-x. 1 oracle oinstall 175 Jan  9 13:42 startKVLite.sh////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////[oracle#bigdata scripts]$ ./createTables.sh================================================================================  Successfully Connected to Oracle NoSQL DB # localhost:5000/kvstore================================================================================There is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultException[oracle#bigdata scripts]$ /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Hello, Based on the output of your successful ping it appears that you are using port 5000 on the host 192.168.56.101 and store name "kvstore".  The createTables.sh script appears to be hard-coded to use port 5000 on the host "localhost."  This is probably your problem.  You need to modify it, and any other scripts to use the actual host/ip address that is being used by the store. Regards,George
hello!so i need to change network card is 'Bridge' to use ip of actual computer? because i'm using virtualbox version 3 with a NAT(ip:10.0.2.15) and a host-only(ip: 192.168.56.101).sorry, i don't understand your mean so much.Could you give me an example?Thanks so much!
A store is addressed by a combination of its name and a set of host:port pairs which address the machines and TCP ports on which its servers are listening. In your case you seem to have created a single KVLite-based store, which is on a single host.  That is indicated by this output you posted earlier:[oracle#bigdata scripts]$ java -jar $KVHOME/lib/kvstore.jar ping -port 5000 -host 192.168.56.101Pinging components of store kvstore based upon topology sequence #14Time: 2015-04-15 11:26:31 UTCkvstore comprises 10 partitions and 1 Storage NodesStorage Node [sn1] on 192.168.56.101:5000    Zone: [name=KVLite id=zn1 type=PRIMARY]    Status: RUNNING  Ver: 12cR1.3.0.14 2014-07-14 01:11:18 UTC  Build id: 94b3e9a4bd99  Rep Node [rg1-rn1] Status: RUNNING,MASTER at sequence number: 319 haPort: 5006 This means that in order to connect to this store you need to specify that store name as well as the host:port pair for the store.  In this case the store name is "kvstore" and the host:port pair is 192.168.56.101:5000. As you point out you have used the IP address instead of host name.  This should work. According to an earlier post you are using a script, createTables.sh, which is generating the error:[oracle#bigdata scripts]$ cat createTables.sh#First create schema definitions in the databasejava -cp ../bin:../lib/kvclient.jar com.oracle.email.init.CreateSchema localhost:5000 kvstore Note that in the script the host:port "localhost:5000" is being used.  That will not work.  You need to modify the script to use a host:port pair that matches the store, e.g. 192.168.56.101:5000 Regards,George
Hi! Thanks for your answer so much!I have modified 'localhost:5000" pairs to '192.168.56.101:5000' pairs in script files which i'm using,and i have modified in java classes, but there is still above error,i also fixed many difficult ways and it didn't work.I have downloaded this demo(Email Application) from oracle.com: Oracle NoSQL Database Documentation and followed README.txt in that EmailApp.zip, You could see code in that above file zip.What Should i modify and run what comment without error?Please help me!
Hello, I was misunderstanding some of your results, and I had not yet looked at the emailApp example (it is owned by others).  It does appear that you are connecting to the store, but it may  not be running an admin process.  What specific command did you use to start the store?  If it was a script, I need the exact output of that script as well as environment variables involved. Another piece of information is be the content of the file $KVROOT/kvstore/sn1/config.xml, where $KVROOT is what was specified in the example (maybe /tmp/kvroot). I'm currently suspecting that you have a KVLite instance running without an admin service.  This is possible to do, although it's not a functional configuration for using this example or tables. NOTE: I'll be on vacation all of next week.  Maybe someone will pick up where this leaves off. Regards,George
Hello!you can see 3 steps and my output:so i need to fix what?1. ///////start kvlite(instance)///////////////////////////////////  [oracle#bigdata Desktop]$ cd[oracle#bigdata ~]$ java -jar $KVHOME/lib/kvstore.jar kvlite -host 192.168.56.101 -root $KVROOTOpened existing kvlite store with config:-root /u02/kvroot -store kvstore -host 192.168.56.101 -port 5000 -admin 5001  ////////////////////////////////////////////////////////////////////////////////////////////////////////2. //////////////////start eclipse////////////////////////  3.////////////////////////////////////////////////////////////////////// run cerate tables///////////////////[oracle#bigdata ~]$ cd Downloads/EmailApp/scripts[oracle#bigdata scripts]$ lltotal 24-rwxrwx---. 1 oracle oinstall  76 Apr 16 21:33 admin.sh-rwxr-xr-x. 1 oracle oinstall 148 Apr 16 21:44 createTables.sh-rwxrwx---. 1 oracle oinstall 203 Nov 21 18:22 resetEnv.sh-rwxr-xr-x. 1 oracle oinstall 194 Apr 16 21:44 runEmailApp.sh-rwxrwx---. 1 oracle oinstall  89 Apr 16 21:33 runScript.sh-rwxr-xr-x. 1 oracle oinstall 180 Apr 16 20:56 startKVLite.sh[oracle#bigdata scripts]$ cat startKVLite.sh  ./resetEnv.sh  #Start KVLite from the kvrootecho "Starting KVLite ..."nohup java -jar $KVHOME/lib/kvstore.jar kvlite -root $KVROOT -host 192.168.56.101 2>&1 > /tmp/kvlite.out &///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////  [oracle#bigdata scripts]$ cat createTables.sh#First create schema definitions in the databasejava -cp ../bin:../lib/kvclient.jar com.oracle.email.init.CreateSchema 192.168.56.101:5000 kvstore  [oracle#bigdata scripts]$ cat runEmailApp.sh#Once the tables are defined run email client applicationjava -cp ../bin:../lib/kvclient.jar:$KVHOME/lib/jackson-mapper-asl.jar com.oracle.email.console.EmailCLI  192.168.56.101:5000 kvstore [oracle#bigdata scripts]$ cat resetEnv.sh## Killing java processes ##echo "Killing Java processes ..."jps | grep -v eclipse |  awk '{print $1}' | xargs -i kill -9 {}  echo "Deleting old kvroot..."## Delete Directories ##rm -rf /tmp/kvroot  [oracle#bigdata scripts]$ ./createTables.sh================================================================================  Successfully Connected to Oracle NoSQL DB # 192.168.56.101:5000/kvstore================================================================================There is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultExceptionThere is a transient problem, retry the operation: oracle.kv.FaultException: Couldn't connect to a store Admin service capable of executing an administrative table statement. Contacted nodes Inspected nodes: [sn1]experienced problems at: [] (12.1.3.2.5) (12.1.3.2.5)Fault class name: oracle.kv.FaultException[oracle#bigdata scripts]$ [oracle#bigdata scripts]$ java -jar $KVHOME/lib/kvstore.jar ping -host 192.168.56.101 -port 5000Pinging components of store kvstore based upon topology sequence #14  Time: 2015-04-17 18:42:43 UTCkvstore comprises 10 partitions and 1 Storage NodesStorage Node [sn1] on 192.168.56.101:5000    Zone: [name=KVLite id=zn1 type=PRIMARY]    Status: RUNNING   Ver: 12cR1.3.0.14 2014-07-14 01:11:18 UTC  Build id: 94b3e9a4bd99  Rep Node [rg1-rn1] Status: RUNNING,MASTER at sequence number: 41 haPort: 5006[oracle#bigdata scripts]$ jps -m4825 Jps -m4697 org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /home/oracle/Downloads/eclipse/eclipse -name Eclipse --launcher.library /home/oracle/Downloads/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.1.R33x_v20070828/eclipse_1020.so -startup /home/oracle/Downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -exitdata 9800f -vm /usr/bin/java -vmargs -Xms40m -Xmx256m -jar /home/oracle/Downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar4513 kvstore.jar kvlite -host 192.168.56.101 -root /u02/kvroot[oracle#bigdata scripts]$  happy your vacation next week!

iPlanet Web Server can not handle session  ? Please help!..

According from my system environment in (http://www.java.net/forum/topic/glassfish/glassfish/cluster-can-not-handle-session-please-help)
I have 3 Physical Machine
1> server hostname is 'linuxgf175'(192.168.1.175)  main cluster control (DAS) and Install iPlanet Webserver with gflb-configurator
2> server hostname is 'linuxgf170'(192.168.1.170)  server for node1(n1) has Instance1 (i1)
3> server hostname is 'linuxgf180'(192.168.1.180)  server for node2(n2) has Instance2 (i2)
 
 
1. I was install iPlanet Web Server to same DAS machine. (192.168.1.175)
2. And create Server Certificates request.
Certificate Details
Nickname    cert-linuxgf175
Subject    CN=linuxgf175
Issuer    Self Signed
Key Type    RSA
Key Size (bits)    1024
Valid From    April 18, 2011 7:30:09 PM ICT
Valid Till    April 18, 2012 7:30:09 PM ICT
Fingerprint    CE:D8:5E:97:DB:56:89:00:56:A7:0F:EB:0D:D4:4A:06
Serial Number    00:94:26:11:AB
Server Name    linuxgf175
(Picture :  http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPlanet_1.png  )
3. And create new http-listenser  (SSL for communicate with DAS port 8082 )
(Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPl... )
4. And import cert file(s1as.rfc) to glassfish-lbconfigurator wizard.  (run lb-configure command    #java -jar glassfish-lbconfigulator.jar )
I was exported that file like this command :
keytool -export -rfc -alias s1as -keystore /usr/glassfish3/glassfish/domains/domain1/config/keystore.jks -file ./s1as.rfc
5. Create and Apply http-lb to DAS domain success !! :)
asadmin>  create-http-lb --devicehost linuxgf175 --deviceport 8082 --target c1 cluster_lb
Enter admin user name>  admin
Enter admin password for user "admin">
Command create-http-lb executed successfully.
asadmin>
asadmin> apply-http-lb-changes cluster_lb
Enter admin user name>  admin
Enter admin password for user "admin">
Command apply-http-lb-changes executed successfully.
6. Deploy "clusterjsp.ear" Application to Cluster c1 with avalibilityenable=true
deploy success
(Picture : http://s138.photobucket.com/albums/q262/madoatz/?action=view&current=iPlanet_3.png  )
7.try to open application , use browser open to iPlanet webserver  success
http://192.168.1.175:80/clusterjsp   
 
## But, It can not handle session between instance (i1) and Instance 2 (i2)
i input some data session into instance (i1)
HttpSession Information:
    Served From Server:   192.168.1.175
    Server Port Number:   80
    Executed From Server: linuxgf170
    Executed Server IP Address: 127.0.0.1
    Session ID:    3ed17253ef55fb5d37203a738e2b
    Session Created:  Thu Apr 21 00:20:08 ICT 2011
    Last Accessed:    Thu Apr 21 00:20:08 ICT 2011
    Session will go inactive in  1800 seconds
INPUT : test1 = test1  
INPUT : test2 = test2
after that try to stop Instance (i1) linuxgf170
come back to browser and refesh button.  It's change route display  to instance i2 (linuxgf180)
HttpSession Information:
    Served From Server:   192.168.1.175
    Server Port Number:   80
    Executed From Server: linuxgf180
    Executed Server IP Address: 127.0.0.1
    Session ID:    3ee66ddd60498d68660a55fadcc5
    Session Created:  Thu Apr 21 00:21:34 ICT 2011
    Last Accessed:    Thu Apr 21 00:21:34 ICT 2011
    Session will go inactive in  1800 seconds
BUT INPUT DATA is not display ?? I loss...session.
Please sir.... please see image url and help clarify  T_T
 
Why instance in cluster not takeover session data from stoped instance.. ?
Please suggest..
More Information
asadmin>
asadmin> get "configs.config.c1-config.group-management-service.*"
Enter admin user name>  admin
Enter admin password for user "admin">
configs.config.c1-config.group-management-service.group-discovery-timeout-in-mi
configs.config.c1-config.group-management-service.failure-detection.heartbeat-f
configs.config.c1-config.group-management-service.failure-detection.max-missed-
configs.config.c1-config.group-management-service.failure-detection.verify-fail
configs.config.c1-config.group-management-service.failure-detection.verify-fail
Command get executed successfully.
asadmin>
asadmin>
asadmin> get clusters.cluster.c1
Enter admin user name>  admin
Enter admin password for user "admin">
clusters.cluster.c1.config-ref=c1-config
clusters.cluster.c1.gms-bind-interface-address=${GMS-BIND-INTERFACE-ADDRESS-c1}
clusters.cluster.c1.gms-enabled=true
clusters.cluster.c1.gms-multicast-address=228.9.147.180
clusters.cluster.c1.gms-multicast-port=23342
clusters.cluster.c1.name=c1
Command get executed successfully.
asadmin>
asadmin>
asadmin>
asadmin>
asadmin> get "clusters.cluster.c1.property.*"
Enter admin user name>  admin
Enter admin password for user "admin">
clusters.cluster.c1.property.GMS_LISTENER_PORT=${GMS_LISTENER_PORT-c1}
Command get executed successfully.
asadmin>
asadmin>
More iPlanet startup log....
[root#linuxgf175 webserver7]# cd admin-server/
[root#linuxgf175 admin-server]# cd bin/
[root#linuxgf175 bin]# ./startserv
Oracle iPlanet Web Server 7.0.9 B07/04/2010 01:31
info: CORE3016: daemon is running as super-user
info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_20] from [Sun Microsystems Inc.]
info: WEB0100: Loading web module in virtual server [admin-server] at [/admingui]
info: WEB0100: Loading web module in virtual server [admin-server] at [/jmxconnector]
info: HTTP3072: admin-ssl-port: https://linuxgf175:8989 ready to accept requests
info: CORE3274: successful server startup
[root#linuxgf175 bin]# cd ../../
[root#linuxgf175 webserver7]# pwd
/usr/glassfish3/webserver7
[root#linuxgf175 webserver7]# cd https-linuxgf175/
[root#linuxgf175 https-linuxgf175]# cd bin/
[root#linuxgf175 bin]# ./startserv
Oracle iPlanet Web Server 7.0.9 B07/04/2010 01:31
info:  reports: Initializing lbplugin BuildId: GlassFish 3.1 load-balancer plugin b05
info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_20] from [Sun Microsystems Inc.]
config: , name-trans-passthrough reports: init-passthrough has not been called
config: , name-trans-passthrough reports: init-passthrough has not been called
config: , name-trans-passthrough reports: init-passthrough has not been called
warning:  reports: lb.configurator: XML_VALIDATOR_WARNING: Cookies will not be rewritten by web server. All cookie updates will be handled by application server. If you are using older version of application server, then failover will not work.
warning:  reports: lb.configurator: Preferred failover instance feature is enabled.
warning:  reports: lb.runtime: RNTM2019: Daemon http://linuxgf170:28080 has been intialized.
warning:  reports: lb.runtime: RNTM2019: Daemon https://linuxgf170:28181 has been intialized.
warning:  reports: lb.runtime: RNTM2019: Daemon http://linuxgf180:28080 has been intialized.
warning:  reports: lb.runtime: RNTM2019: Daemon https://linuxgf180:28181 has been intialized.
warning:  reports: lb.runtime: RNTM2019: Daemon http://linuxgf170:28081 has been intialized.
warning:  reports: lb.runtime: RNTM2019: Daemon https://linuxgf170:28182 has been intialized.
info: HTTP3072: http-listener-1: http://linuxgf175:80 ready to accept requests
info: HTTP3072: http-listener-ssl: https://linuxgf175:8090 ready to accept requests
info: CORE3274: successful server startup
[root#linuxgf175 bin]#
Hi,
I don't know if that can help but it looks like you are using an old version of the clusterjsp on which session replication does not work with glassfish 3.1:
    Served From Server:   192.168.1.175
    Server Port Number:   80
    Executed From Server: linuxgf170
    Executed Server IP Address: 127.0.0.1
    Session ID:    3ed17253ef55fb5d37203a738e2b
    Session Created:  Thu Apr 21 00:20:08 ICT 2011
    Last Accessed:    Thu Apr 21 00:20:08 ICT 2011
    Session will go inactive in  1800 seconds
 
You should try this one : http://wikis.sun.com/download/attachments/209655304/clusterjsp.ear that works fine for me.
I guess the problem comes from the file sun-web.xml, more precisely from the session-config markup. Don't forget the "--availabilityenabled true" option at deployment.
This new version also gives you the name of the glassfish instance, and it is quite useful :)  :
    Executed From Server: ubuntu-server
    Served From Server instance : instance3
 
Regards,
Fabien Leroy.
 
 
thanks , i will try on it.
Did you deploy the application with the --availabilityenabled=true
option (or by clicking the Availability checkbox in the deploy dialog in
the admin console)?
Tom
Thank you very much It's worked ! :)

Categories

Resources