[OSB11] issue migrating a WLST script from OSB1031
Hi all,
we are migrating a .py script (disable-enable-service.py) from OSB1031 to OSB11 (11.1.1.6) and we got an error at runtime.
The error:
Problem invoking WLST - Traceback (innermost last):
File "/products/software/servicebus/osb11/scripts/disable-enable-service.py", line 32, in ?
ImportError: cannot import name Ref
Extracts from the script:
import wlstModule
from com.bea.wli.config import Ref
from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
from com.bea.wli.sb.management.configuration import ProxyServiceConfigurationMBean
from com.bea.wli.sb.management.configuration import SessionManagementMBean
from com.bea.wli.sb.management.query import ProxyServiceQuery
from ConfigParser import ConfigParser
from util import createSessionName
from Failure import Failure
#=======================================================================================
# Main
#=======================================================================================
sessionMBean = None
sessionName = None
try:
checkParams()
CONFIG_PARSER = ConfigParser()
CONFIG_PARSER.read('admin.properties')
print
connectToWLS()
#Call to domainRuntime() needed for calling getSessionMBean()
domainRuntime()
sessionName = createSessionName('disable-enable-service')
sessionMBean = getSessionMBean(sessionName)
# Get the ALSBConfigurationMBean instance that operates on the session that has just been created.
alsbSession = findService(ALSBConfigurationMBean.NAME + "." + sessionName.toString(), ALSBConfigurationMBean.TYPE)
# Get the ProxyServiceConfigurationMBean specific to our session
mbean = findService(String("ProxyServiceConfiguration.").concat(sessionName),'com.bea.wli.sb.management.configuration.ProxyServiceConfigurationMBean')
edit()
startEdit()
#Cal to activate() needed otherwise raised unexpected error: java.lang.Exception
activate()
disableEnableService(alsbSession, mbean, sys.argv[1], sys.argv[2], sys.argv[3])
print
sessionMBean.activateSession(sessionName, sys.argv[1] + ": service " + sys.argv[2] + " , action " + sys.argv[3])
disconnect()
except:
raiseError()
We run the WLST including below jar files from OSB11 distribution:
CLASSPATH : /software/Middleware/bea1036/wlserver_10.3/server/lib/weblogic.jar:/software/Middleware/bea1036/Oracle_OSB11/lib/sb-kernel-api.jar:/software/Middleware/bea1036/Oracle_OSB11/lib/sb-kernel-impl.jar
We checked also sb-kernel-common.jar/sb-kernel-resources.jar/sb-kernel-wls.jar/sb-schemas.jar but we didn't find references to Ref class.
Do we need to add additional jars ?
Thanks and regards
ferp
Please refer -
Re: Error while running export.py in OSB 11g
the manifest.mf file of the alsb.jar contains the required libraries (including sb-kernel-impl.jar). It would be nice if you can put this jar instead of individual jars to reduce the impact of version and the packaging changes from version to version. I prefer to have this as best practice.
My two cents
ManojRegards,
Anuj
Similar Messages
-
Issue while executing OS script from Oracle
I am trying to execute the scripts provided at :
http://github.com/xtender/XT_SHELL
provided by xtender user.
As required, I have asked my DBAs to grant privileges by executing the following scripts:
Begin
--change to needed permissions and execute
dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/factiva/ODS/bin/CVIM_Rpt_ExportCSVFile’, 'read,write,execute' );
end;
/where CVIM_Rpt_ExportCSVFile is my script residing in the Unix server where my Oracle is installed.
The error I am facing when I try to execute the following command is:
select * from table(xt_shell.shell_exec('/var/scripts/CVIM_Rpt_ExportCSVFile',100))
Exception:the Permission (java.io.FilePermission /var/scripts/CVIM_Rpt_ExportCSVFile execute) has not been granted to ODS. The PL/SQL to grant this is dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )I have asked my DBA to also execute the following scripts: - But I still see the same error as above. I am not able to figure out whats going on. Can anyone pls help me out??
EXEC Dbms_Java.Grant_Permission('ODS', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
EXEC Dbms_Java.Grant_Permission(ODS', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )DUPLICATE
=============================================================
Issue with Executing OS commands from Stored Procedure
============================================================ -
What are CLASSPATH settings to run WLST scripts from JYTHON
Hi,
I am trying to run a Jython script that uses WLST calls.
Following steps were done
1. Run WLST.sh
2. writeinit("wl.py")
3. Invoke Jython and then do "import wl"
The import fails with error
from weblogic.management.scripting.utils import WLSTUtil
ImportError: No module named weblogic
Looking at the wlst.sh, it extends classpath for bunch of jars like
if [ -d "${WLST_HOME}/lib" ] ; then
for file in "${WLST_HOME}"/lib/*.jar ; do
CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${file}"
done
fi
Question - what are all the files to be added to classpath ? Is there a script to explicitly set classpath for all relevant jars for WLST usage ?
Any help will be appreciatedYou shouldn't need to press the Sync button. In the Pod options menu for the share pod, with the PPT loaded, you will see an option for Show Presentation Playbar. Use that to get the Play button for the Hosts and Presenters in the room, and press play. The presentation will now play in a looped mode for everyone in a synchronized mode. You can also then hide the playbar to keep other Hosts and Presenters from stopping the playback and the Participants will never see the playbar or have the option to stop the presentation.
Additionally, if your focus is on the Share pod (has the focus highlight), you can use the 'P' key to begin playing the presentation without revealing the playbar to anyone. Adobe Connect 9 * Accessibility features -
Why this WLST script does not work from ant a task
Hi,
The following is my lovely WLST script to disable managed server hostname verification in a cluster environment.
It works perfect if I run it from the OS command line,
java -cp $WL_HOME/server/lib/weblogic.jar sslSetting.py weblogic weblogic t3://localhost:7001
But if I run it from ant task, it never works. Nothing happens, not even any messages. Any idea?
------ sslSetting.py -----------
# Disable HostnameVerification on managed servers
# This is a ONLINE script. The admin server must be running
# @param $1 BEA_USER_NAME
# @param $2 BEA_USER_PWD
# @param $3 admin server URL
if (len(sys.argv) != 4):
print "usage: " + sys.argv[0] + " domain-home "
sys.exit()
beaUserName=sys.argv[1]
beaUserPwd=sys.argv[2]
adminServerUrl=sys.argv[3]
def handleServer(server):
SSLPath="/Servers/" + server.getName() + "/SSL/" + server.getName()
print("handleServer(1): " + SSLPath)
try:
cd (SSLPath)
print("handleServer(2): " + SSLPath)
set("HostnameVerificationIgnored", "true")
except Exception, inst:
dumpStack()
print ("FAILED handleServer(): " + SSLPath)
else:
print ("DONE handleServer(): " + SSLPath)
#===============================================================================
# Main
#===============================================================================
try:
connect(beaUserName, beaUserPwd, adminServerUrl)
edit()
startEdit()
adminServerName=cmo.getAdminServerName()
for server in cmo.getServers():
if adminServerName != server.getName():
handleServer(server)
save()
activate()
except Exception:
dumpStack()
else:
print ("=== DONE ===")OK, when I run the WLST script from command java, I only need the weblogic.jar in the classpath. But I'll need a couple other jar file for it to work inside an ant target, as showing below.
<target name="run-wlst">
<java classname="weblogic.WLST" fork="true">
<classpath>
<pathelement path="${props.JAVA_HOME}/lib/tools.jar"/>
<pathelement path="${props.WL_HOME}/server/lib/weblogic_sp.jar"/>
<pathelement path="${props.WL_HOME}/server/lib/weblogic.jar"/>
<pathelement path="${props.WL_HOME}/server/lib/webservices.jar"/>
</classpath>
<sysproperty key="weblogic.Home" value="${props.WL_HOME}" />
<arg line="sslSetting.py weblogic weblogic t3://localhost:7001"/>
</java>
</target> -
Migrating Shell scripts from HP-Unix 11i to OEL 5.0
Hi :
We recently migrated the databases from a HP-Unix server 11i to OEL 5.0 Server. As a part of the move we also had to migrate the shell scripts from Unix.
The source scripts uses B-Shell and when we try to run this on OEL nothing works. It looks like we may have to rewrite for BASH or KORN Shell in OEL 5.0.
I have very limited experience in writing shell scripts and need expert guidence on how the existing script could be modified to work in Linux. Any useful pointer would be great help.
Regards,
BalaBMP wrote:
Hi :
We recently migrated the databases from a HP-Unix server 11i to OEL 5.0 Server. As a part of the move we also had to migrate the shell scripts from Unix.
The source scripts uses B-Shell and when we try to run this on OEL nothing works. It looks like we may have to rewrite for BASH or KORN Shell in OEL 5.0.
I have very limited experience in writing shell scripts and need expert guidence on how the existing script could be modified to work in Linux. Any useful pointer would be great help.
Regards,
BalaI assume you mean 'Bourne shell' ... though possibly you have Posix (which is meant to be close to ksh).
In general ... with exceptions ... ksh and bash are a superset of (bourne shell).
Two things can help:
[1] Check the first line in the scripts and indicate what it is .....
head -1 some-shell-script.
Does hte she-bang command exit on OEL?
[2] Post one or show of the error messages here.
... It is possilbe you are getting one basic error/problem repeated everywhere rather than a lot of different eror messages
If you give examples ... without compromising your security .. that may be a more focused answer -
Not able to call sql script from shell program
Hi Gurus,
I am facing issue while calling sqlplus script from my shell program. Please find below my shell script. This program I've written and registered as for one of concurrent program
in oracle applications.
p_userid_passwd=$1
p_appl_login=$2
p_user_name=$3
p_request_id=$4
v_conc_request_id=${5}
p_to_role=${6}
p_from_role=${7}
p_subject=${8}
p_body=${9}
p_dist_list=${10}
v_request=${11}
v_file_path_name=/u01/oraspt/REQUEST
cd $APPLCSF/$APPLOUT
echo "v_conc_request_id" $v_conc_request_id
echo "p_to_role" $p_to_role
echo "p_from_role" $p_from_role
echo "p_subject" $p_subject
echo "p_body" $p_body
echo "p_dist_list" $p_dist_list
echo "v_request" $v_request
ls -l $v_request
if [ $? -ne 0 ]
then
echo "No output request generated"
else
echo "Output request generated"
fi
echo "connecting to ftp for placing out file to DB server"
echo FTP to 99.60.17.11
echo username: "oraspt"
echo pw:
ftp -i -n 99.60.17.11 << EOF2
user "oraspt" orakdk
cd $v_file_path_name
put $v_request
bye
EOF2
output=`sqlplus -s /nolog <<EOT
whenever sqlerror exit failure;
connect apps/apps
set verify off;
set serveroutput on size 120000;
DECLARE
l_errbuf varchar2(300);
l_retcode varchar2(300);
BEGIN
XXFND_SEND_MAIL.SEND_NOTIFICATIONS( errbuf => l_errbuf
, retcode => l_retcode
, p_request_id => $v_conc_request_id
, p_to_role => $p_to_role
, p_from_role => $p_from_role
, p_subject => $p_subject
, p_body => $p_body
, p_dist_list => $p_dist_list);
EXCEPTION
when others then
dbms_output.put_line('Error encountered :'||SQLERRM);
END;
EOT
`
echo "connecting to ftp for deleting output file"
echo FTP to 99.60.17.11
echo username: "oraspt"
echo pw:
ftp -i -n 99.60.17.11 << EOF2
user "oraspt" orakdk
cd $v_file_path_name
delete $v_request
bye
EOF2
echo "Deleted successfully"Output for script is as below
v_conc_request_id 451906
p_to_role DC.DKHOO
p_from_role DC.DKHOO
p_subject Receivable audit report10
p_body Please find Audit Report Attachment.
p_dist_list
v_request o451906.out
-rw-r--r-- 1 applspt dba 2368 Dec 28 15:06 o451906.out
Output request generated
connecting to ftp for placing out file to DB server
FTP to 10.60.17.11
username: oraspt
pw:
connecting to ftp for deleting output file
FTP to 10.60.17.11
username: oraspt
pw:
Deleted successfullyPlease let me know how to trigger pl/sql script.
Thanks in advance for your help.
Regards
Nagendra
Edited by: 838961 on Dec 27, 2011 11:25 PMPlease find output as suggested, I've placed set -x in script.
+ p_userid_passwd=APPS/APPS
+ p_appl_login=1110
+ p_user_name=DC.DKHOO
+ p_request_id=451949
+ v_conc_request_id=451945
+ p_to_role=DC.DKHOO
+ p_from_role=DC.DKHOO
+ p_subject=Receivabless
+ p_body=report
+ p_dist_list=
+ v_request=o451945.out
+ v_file_path_name=/u01/oraspt/REQUEST
+ cd /u01/applspt/inst/apps/SPT_nfs-stg-app1/logs/appl/conc/out
+ echo v_conc_request_id 451945
v_conc_request_id 451945
+ echo p_to_role DC.DKHOO
p_to_role DC.DKHOO
+ echo p_from_role DC.DKHOO
p_from_role DC.DKHOO
+ echo p_subject Receivabless
p_subject Receivabless
+ echo p_body report
p_body report
+ echo p_dist_list
p_dist_list
+ echo v_request o451945.out
v_request o451945.out
+ ls -l o451945.out
-rw-r--r-- 1 applspt dba 2368 Dec 28 15:54 o451945.out
+ '[' 0 -ne 0 ']'
+ echo 'Output request generated'
Output request generated
+ echo 'connecting to ftp for placing out file to DB server'
connecting to ftp for placing out file to DB server
+ echo FTP to 10.60.17.11
FTP to 10.60.17.11
+ echo username: oraspt
username: oraspt
+ echo pw:
pw:
+ ftp -i -n 10.60.17.11
++ sqlplus -s /nolog
+ output=Connected.
+ echo 'connecting to ftp for deleting output file'
connecting to ftp for deleting output file
+ echo FTP to 10.60.17.11
FTP to 10.60.17.11
+ echo username: oraspt
username: oraspt
+ echo pw:
pw:
+ ftp -i -n 10.60.17.11
+ echo 'Deleted successfully'
Deleted successfully -
OWLS Domain to WLST script Generation.
Dears -
Is there any way to generate the WLST script from already created domain?
OWLS version : Any Version.
Thanks in Advance !
Regards,
Justin.ConfigToScript
http://weblogic-wonders.com/weblogic/2010/11/19/configtoscript-command/ -
WLST scripts for deploying and migrating OSB project required
Hi,
I need sample/reusable WLST scripts for the following requirements:
1. deploying OSB project developed on workbench to the remote server.
2. migrating OSB project from Remote Server A to Remote Server B.
I know other mechanisms to register an OSB project with the server but appreciate if some one can share the above scripts and associated documentation with me.
Regards,
CChttp://download.oracle.com/docs/cd/E13171_01/alsb/docs21/deploy/config_appx.html
http://www.oracle.com/technology/sample_code/products/osb/samples/PARAMETERIZE.zip (other samples here : http://www.oracle.com/technology/sample_code/products/osb/index.html ) -
Creation of Customisation file from WLST Script in OSB
Hi,
Please help in creating Customisation file in OSB from WLST ScriptsHi,
Please refer -
Create Customization File in OSB 10g with WLST script
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/deploy/config_appx.html
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/config/customization/Customization.html
Regards,
Anuj -
Issues in running scripts from OTM
Hi ,
I have created an endtoend scenario where the script starts from creating requistion, approval, PO creation approval , receipt creation then Invoice and payment.
My script failing with different reason for different runs. Mailnly its failing whenever the steps are referrred to Standard Oracle Forms.(Eg: Invoice Batch, Receipt Form etc).
I am running this from machine where Openscript and OTM is installed.
I tried the command line arugment like " -delayPercentage -1 -delayMin 1 -delayMax 20 " while running the script from OTM. Still issue is same. If I am not using this commad the script steps deviates and failing. I mean in script the step is to choose some responsibility A it is choosing B. To override think times recorded I have used thread.sleep(2000) after every thinktime entry to run it from openscript.
and to run it from OTM I am using above command.
Now can anyone suggest me is anyother way that we can overcome these timeout errors. Am I using command line argument in correct way ? Please helpHi,
First try your playback from OpenScript.
Before play back go to View -> OpenScript Preferences -> PlayBack -> Oracle EBS/Forms Functional
Increase timeouts in Event Timeout. Also Increase timeout in Web Functional (Object timeout)
Then Apply and OK
Now try play back from OpenScript
Regards,
Deepu M
[email protected] -
Miggi tool, issue migrating OES2 to OES11
I have had this issue at three consecutive sites of late. All in the process of doing transfer id of OES2sp3 to OES11sp1. Each server also has been a DNS/DHCP server as well. I am basically shutting down those services beforehand, and doing the transfer id. All prerequisites have been done beforehand, and the pre checks and health checks pass fine. The process hangs all three times on the last part on the LUM transfer. It simplys hangs on the process and want finish. I actually opened an SR on one of the boxes the first time and Novell had me kill the process to let it finish. Problem is that is fouls up the LDAP and SSL certs and all of it has to be done manually afterwards. If this was one site I would let it ride, but since I have had three separate customers who I ran into this issue on each one makes me feel something else is going on. Now, this is the first times I have done transfer id going to OES11sp1. I have done many going from NetWare and OES2 to OES11, so not sure if issue in OES11sp1?? Anyway, just thought I would see if anyone else had run into this issue. I have more to do this year so would like to know what is causing this issue.
Looks like from the SR, it has multiple issues. First the server has issues with certificates and post recreation it went through and next is the nam commands were failing.
My suggestion is verify the nam preferred-server on the target server before TransferID is accessible or not and if not point to a proper ldap server in the tree.
Also make sure that you have patched the server to the latest and the certificates of the server and as well as tree are valid.
If by any chance TransferID UI is closed for any reason, you can execute the remaining TransferID steps using command-lines documented in the guide.
-Ramesh
>>> jlewter<[email protected]> 08/12/2013 08:06 PM >>>
SR was 10847842383
Here is the migration log:
2013-07-30 15:21:50,495 INFO -
ServerIDSwap:ndsconfig:Servercertificate is updated correctly
2013-07-30 15:21:50,495 INFO - ServerIDSwap:ndscheck:Executing
ndscheck to check status of edirectory on this server
2013-07-30 15:21:50,496 INFO - ServerIDSwap:ndscheck:Executing
Command: LC_ALL=en_US.UTF-8 /opt/novell/eDirectory/bin/ndscheck -h
utility.chathamhall.org -a "admin.chatham" -w env:ADM_PASSWD -F
"/var/opt/novell/migration/NewProj1/ndscheck.log"
2013-07-30 15:21:50,599 INFO -
ServerIDSwap:ndscheck:*****************Command output
start**********************************
2013-07-30 15:21:50,600 INFO - ServerIDSwap:ndscheck:
2013-07-30 15:21:50,600 INFO -
ServerIDSwap:ndscheck:*****************Command output
end**********************************
2013-07-30 15:21:50,600 WARN - ServerIDSwap:ndscheck:ndscheck flagged
warnings
2013-07-30 15:21:50,600 WARN - ServerIDSwap:ndscheck:For more
information, check ndscheck.log located at
/var/opt/novell/migration/NewProj1
2013-07-30 15:21:50,600 INFO - ServerIDSwap:LUM Repair:Reading
preferred-server from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 15:21:50,602 INFO - ServerIDSwap:LUM Repair:Reading
alternative-ldap-server-list from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 15:21:50,602 INFO - ServerIDSwap:namconfig:Executing
nam-reconf.rb to create Unix Workstation object...
2013-07-30 15:21:50,602 INFO - ServerIDSwap:LUM Repair:reading LUM
base name from /var/opt/novell/migration/NewProj1/nam.conf
2013-07-30 15:21:50,603 INFO - ServerIDSwap:LUM Repair:Executing
Command: ruby
/opt/novell/migration/sbin/serveridswap/scripts/repair/nam-reconf.rb -a
"cn=admin,o=chatham" -S "172.16.1.1" --ldap-port 636 -u "o=chatham"
2013-07-30 16:50:37,147 ERROR - ServerIDSwap:LUM Repair:Command failed
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM Repair:Information:
executing command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l
636
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
2013-07-30 16:56:46,871 INFO - ServerIDSwap:Repair:Starting repair
phase......
2013-07-30 16:56:46,872 INFO - ServerIDSwap:LUM Repair:Reading
preferred-server from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 16:56:46,872 INFO - ServerIDSwap:LUM Repair:Reading
alternative-ldap-server-list from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 16:56:46,872 INFO - ServerIDSwap:namconfig:/etc/nam.conf
file exists. Moving it to /etc/nam.conf.migsave
2013-07-30 16:56:46,887 INFO - ServerIDSwap:namconfig:Executing
nam-reconf.rb to create Unix Workstation object...
2013-07-30 16:56:46,887 INFO - ServerIDSwap:LUM Repair:reading LUM
base name from /var/opt/novell/migration/NewProj1/nam.conf
2013-07-30 16:56:46,887 INFO - ServerIDSwap:LUM Repair:Executing
Command: ruby
/opt/novell/migration/sbin/serveridswap/scripts/repair/nam-reconf.rb -a
"cn=admin,o=chatham" -S "172.16.1.1" --ldap-port 636 -u "o=chatham"
2013-07-30 16:57:39,239 ERROR - ServerIDSwap:LUM Repair:Command failed
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:Information:
executing command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l
636
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:Fatal: Failed
to execute the command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l 636
with result:
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
2013-07-30 16:57:56,595 INFO - ServerIDSwap:Repair:Starting repair
phase......
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsrepair:Starting to
execute NDSRepair command
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsrepair:Executing
Command: LC_ALL=en_US.UTF-8 /opt/novell/eDirectory/bin/ndsrepair -U
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsd:Time taken to execute
this command depends on the size of the DIB and tree
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsd:No log messages will
be updated during the execution
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:Executing ndsd
restart
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd restart
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:Time taken to execute
this command depends on the size of the DIB and tree
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:No log messages willbe updated during the execution
2013-07-30 17:04:33,314 INFO - ServerIDSwap:ndsd:ndsd restart command
returned...0
2013-07-30 17:04:33,314 INFO - ServerIDSwap:ndsd:Waiting for ndsd to
restart
2013-07-30 17:04:34,314 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd status
2013-07-30 17:04:34,447 INFO - ServerIDSwap:ndsd:ndsd status command
returned...
2013-07-30 17:04:34,448 INFO - ServerIDSwap:ndsconfig:Executing
Command: /opt/novell/eDirectory/bin/ndsconfig add -m sas -a
"admin.chatham" -w env:ADM_PASSWD --config-file
/etc/opt/novell/eDirectory/conf/nds.conf
2013-07-30 17:04:55,463 INFO - ServerIDSwap:LUM Repair:ndsconfig add
-m sas returned...
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:Executing ndsd
restart
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd restart
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:Time taken to execute
this command depends on the size of the DIB and tree
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:No log messages will
be updated during the execution
2013-07-30 17:11:05,175 INFO - ServerIDSwap:ndsd:ndsd restart command
returned...0
2013-07-30 17:11:05,175 INFO - ServerIDSwap:ndsd:Waiting for ndsd to
restart
2013-07-30 17:11:06,175 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd status
2013-07-30 17:11:06,315 INFO - ServerIDSwap:ndsd:ndsd status command
returned...
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:Owner:
CN=utility.chathamhall.org, O=CHATHAM
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:Owner:
OU=Organizational CA, O=CHATHAM
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
2013-07-30 17:11:07,519 INFO -
ServerIDSwap:ndsconfig:Servercertificate is updated correctly
2013-07-30 17:11:07,519 INFO - ServerIDSwap:ndscheck:Executing
ndscheck to check status of edirectory on this server
2013-07-30 17:11:07,519 INFO - ServerIDSwap:ndscheck:Executing
Command: LC_ALL=en_US.UTF-8 /opt/novell/eDirectory/bin/ndscheck -h
utility.chathamhall.org -a "admin.chatham" -w env:ADM_PASSWD -F
"/var/opt/novell/migration/NewProj1/ndscheck.log"
2013-07-30 17:11:07,616 INFO -
ServerIDSwap:ndscheck:*****************Command output
start**********************************
2013-07-30 17:11:07,616 INFO - ServerIDSwap:ndscheck:
2013-07-30 17:11:07,616 INFO -
ServerIDSwap:ndscheck:*****************Command output
end**********************************
2013-07-30 17:11:07,616 WARN - ServerIDSwap:ndscheck:ndscheck flagged
warnings
2013-07-30 17:11:07,616 WARN - ServerIDSwap:ndscheck:For more
information, check ndscheck.log located at
/var/opt/novell/migration/NewProj1
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:Reading
preferred-server from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:Reading
alternative-ldap-server-list from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 17:11:07,617 INFO - ServerIDSwap:namconfig:Executing
nam-reconf.rb to create Unix Workstation object...
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:reading LUM
base name from /var/opt/novell/migration/NewProj1/nam.conf
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:ExecutingCommand: ruby
/opt/novell/migration/sbin/serveridswap/scripts/repair/nam-reconf.rb -a
"cn=admin,o=chatham" -S "172.16.1.1" --ldap-port 636 -u "o=chatham"
2013-07-30 17:17:25,527 ERROR - ServerIDSwap:LUM Repair:Command failed
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:Information:
executing command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l
636
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:Fatal: Failed
to execute the command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l 636
with result:
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
Here is part from serverswap log:
2013-07-30 15:21:50,495 INFO -
ServerIDSwap:ndsconfig:Servercertificate is updated correctly
2013-07-30 15:21:50,495 INFO - ServerIDSwap:ndscheck:Executing
ndscheck to check status of edirectory on this server
2013-07-30 15:21:50,496 INFO - ServerIDSwap:ndscheck:Executing
Command: LC_ALL=en_US.UTF-8 /opt/novell/eDirectory/bin/ndscheck -h
utility.chathamhall.org -a "admin.chatham" -w env:ADM_PASSWD -F
"/var/opt/novell/migration/NewProj1/ndscheck.log"
2013-07-30 15:21:50,599 INFO -
ServerIDSwap:ndscheck:*****************Command output
start**********************************
2013-07-30 15:21:50,600 INFO - ServerIDSwap:ndscheck:
2013-07-30 15:21:50,600 INFO -
ServerIDSwap:ndscheck:*****************Command output
end**********************************
2013-07-30 15:21:50,600 WARN - ServerIDSwap:ndscheck:ndscheck flagged
warnings
2013-07-30 15:21:50,600 WARN - ServerIDSwap:ndscheck:For more
information, check ndscheck.log located at
/var/opt/novell/migration/NewProj1
2013-07-30 15:21:50,600 INFO - ServerIDSwap:LUM Repair:Reading
preferred-server from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 15:21:50,602 INFO - ServerIDSwap:LUM Repair:Reading
alternative-ldap-server-list from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 15:21:50,602 INFO - ServerIDSwap:namconfig:Executing
nam-reconf.rb to create Unix Workstation object...
2013-07-30 15:21:50,602 INFO - ServerIDSwap:LUM Repair:reading LUM
base name from /var/opt/novell/migration/NewProj1/nam.conf
2013-07-30 15:21:50,603 INFO - ServerIDSwap:LUM Repair:Executing
Command: ruby
/opt/novell/migration/sbin/serveridswap/scripts/repair/nam-reconf.rb -a
"cn=admin,o=chatham" -S "172.16.1.1" --ldap-port 636 -u "o=chatham"
2013-07-30 16:50:37,147 ERROR - ServerIDSwap:LUM Repair:Command failed
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM Repair:Information:
executing command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l
636
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:50:37,159 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
2013-07-30 16:56:46,871 INFO - ServerIDSwap:Repair:Starting repair
phase......
2013-07-30 16:56:46,872 INFO - ServerIDSwap:LUM Repair:Reading
preferred-server from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 16:56:46,872 INFO - ServerIDSwap:LUM Repair:Reading
alternative-ldap-server-list from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 16:56:46,872 INFO - ServerIDSwap:namconfig:/etc/nam.conf
file exists. Moving it to /etc/nam.conf.migsave
2013-07-30 16:56:46,887 INFO - ServerIDSwap:namconfig:Executing
nam-reconf.rb to create Unix Workstation object...
2013-07-30 16:56:46,887 INFO - ServerIDSwap:LUM Repair:reading LUM
base name from /var/opt/novell/migration/NewProj1/nam.conf
2013-07-30 16:56:46,887 INFO - ServerIDSwap:LUM Repair:Executing
Command: ruby
/opt/novell/migration/sbin/serveridswap/scripts/repair/nam-reconf.rb -a
"cn=admin,o=chatham" -S "172.16.1.1" --ldap-port 636 -u "o=chatham"
2013-07-30 16:57:39,239 ERROR - ServerIDSwap:LUM Repair:Command failed
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:Information:
executing command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l
636
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:Fatal: Failed
to execute the command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l 636
with result:
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM Repair:
2013-07-30 16:57:39,239 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
2013-07-30 16:57:56,595 INFO - ServerIDSwap:Repair:Starting repair
phase......
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsrepair:Starting to
execute NDSRepair command
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsrepair:Executing
Command: LC_ALL=en_US.UTF-8 /opt/novell/eDirectory/bin/ndsrepair -U
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsd:Time taken to execute
this command depends on the size of the DIB and tree
2013-07-30 16:57:56,595 INFO - ServerIDSwap:ndsd:No log messages will
be updated during the execution
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:Executing ndsd
restart
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd restart
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:Time taken to execute
this command depends on the size of the DIB and tree
2013-07-30 16:58:23,257 INFO - ServerIDSwap:ndsd:No log messages will
be updated during the execution
2013-07-30 17:04:33,314 INFO - ServerIDSwap:ndsd:ndsd restart command
returned...0
2013-07-30 17:04:33,314 INFO - ServerIDSwap:ndsd:Waiting for ndsd to
restart
2013-07-30 17:04:34,314 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd status
2013-07-30 17:04:34,447 INFO - ServerIDSwap:ndsd:ndsd status command
returned...
2013-07-30 17:04:34,448 INFO - ServerIDSwap:ndsconfig:Executing
Command: /opt/novell/eDirectory/bin/ndsconfig add -m sas -a
"admin.chatham" -w env:ADM_PASSWD --config-file
/etc/opt/novell/eDirectory/conf/nds.conf
2013-07-30 17:04:55,463 INFO - ServerIDSwap:LUM Repair:ndsconfig add
-m sas returned...
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:Executing ndsd
restart
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd restart
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:Time taken to execute
this command depends on the size of the DIB and tree
2013-07-30 17:04:55,464 INFO - ServerIDSwap:ndsd:No log messages will
be updated during the execution
2013-07-30 17:11:05,175 INFO - ServerIDSwap:ndsd:ndsd restart command
returned...0
2013-07-30 17:11:05,175 INFO - ServerIDSwap:ndsd:Waiting for ndsd to
restart
2013-07-30 17:11:06,175 INFO - ServerIDSwap:ndsd:Executing Command:
/etc/init.d/ndsd status
2013-07-30 17:11:06,315 INFO - ServerIDSwap:ndsd:ndsd status command
returned...
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:Owner:
CN=utility.chathamhall.org, O=CHATHAM
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:Owner:
OU=Organizational CA, O=CHATHAM
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:11:07,519 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
2013-07-30 17:11:07,519 INFO -
ServerIDSwap:ndsconfig:Servercertificate is updated correctly
2013-07-30 17:11:07,519 INFO - ServerIDSwap:ndscheck:Executing
ndscheck to check status of edirectory on this server
2013-07-30 17:11:07,519 INFO - ServerIDSwap:ndscheck:Executing
Command: LC_ALL=en_US.UTF-8 /opt/novell/eDirectory/bin/ndscheck -h
utility.chathamhall.org -a "admin.chatham" -w env:ADM_PASSWD -F
"/var/opt/novell/migration/NewProj1/ndscheck.log"
2013-07-30 17:11:07,616 INFO -
ServerIDSwap:ndscheck:*****************Command output
start**********************************
2013-07-30 17:11:07,616 INFO - ServerIDSwap:ndscheck:
2013-07-30 17:11:07,616 INFO -
ServerIDSwap:ndscheck:*****************Command output
end**********************************
2013-07-30 17:11:07,616 WARN - ServerIDSwap:ndscheck:ndscheck flagged
warnings
2013-07-30 17:11:07,616 WARN - ServerIDSwap:ndscheck:For more
information, check ndscheck.log located at
/var/opt/novell/migration/NewProj1
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:Reading
preferred-server from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:Reading
alternative-ldap-server-list from
/var/opt/novell/migration/NewProj1/nam.conf.target
2013-07-30 17:11:07,617 INFO - ServerIDSwap:namconfig:Executing
nam-reconf.rb to create Unix Workstation object...
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:reading LUM
base name from /var/opt/novell/migration/NewProj1/nam.conf
2013-07-30 17:11:07,617 INFO - ServerIDSwap:LUM Repair:Executing
Command: ruby
/opt/novell/migration/sbin/serveridswap/scripts/repair/nam-reconf.rb -a
"cn=admin,o=chatham" -S "172.16.1.1" --ldap-port 636 -u "o=chatham"
2013-07-30 17:17:25,527 ERROR - ServerIDSwap:LUM Repair:Command failed
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM
Repair:*****************Command output
start**********************************
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:Information:
executing command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l
636
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:Fatal: Failed
to execute the command: LC_ALL=en_US.UTF-8 /usr/bin/namconfig add -a
"cn=admin,o=chatham" -r "o=chatham" -w "O=Chatham" -S 172.16.1.1 -l 636
with result:
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM Repair:
2013-07-30 17:17:25,527 INFO - ServerIDSwap:LUM
Repair:*****************Command output
end**********************************
jlewter
jlewter's Profile: https://forums.novell.com/member.php?userid=14321
View this thread: https://forums.novell.com/showthread.php?t=468831 -
Issue in configuring Standby Database from Active database in 11g by RMAN
POSTED THE SAME IN DATA GUARD CATEGORY UNABLE TO DELETE
Hi All,
I am facing issue in creating the standby database from Active database using RMAN and getting the below issue after i executed the duplicate command.
Version of Database:11g(11.2.0.1.0)
Operating System:Linux 5
Error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/21/2012 17:26:52
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Primary Database Entries:
Tnsentry:
SONYPRD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprd.localdomain)(UR=A)
SONYPRDSTBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprdstby)(UR=A)
Listner Entry:
SID_LIST_SONYPRD =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtproc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = SONYPRD)
(GLOBAL_DBNAME = SONYPRD)
Auxiliary Details:
Tns Entry:
SONYPRD =
(DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = oracle11g.localdomain)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprd.localdomain)
SONYPRDSTBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprdstby)(UR=A)
Listener Entry in auxiliary:
SID_LIST_SONYPRDSTBY =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = SONYPRDSTBY)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = SONYPRDSTBY)
TNSPING from Primary DB:
[oracle@oracle11g ~]$ tnsping sonyprdstby
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:39:28
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprdstby)(UR=A)))
OK (0 msec)
TNSPING from Auxuliary server
[oracle@oracle11gstby ~]$ tnsping sonyprd
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:40:19
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprd.localdomain)))
OK (10 msec)
Script Used for duplicate:
run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate auxiliary channel stby type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert 'sonyprd','sonyprdstby'
set db_unique_name='sonyprdstby'
set db_file_name_convert='/sonyprd/','/sonyprdstby/'
set log_file_name_convert='/sonyprd/','/sonyprdstby/'
set control_files='/u01/app/oracle/oradata/control01.ctl'
set log_archive_max_processes='5'
set fal_client='sonyprdstby'
set fal_server='sonyprd'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(sonyprd,sonyprdstby)'
set log_archive_dest_2='service=sonyprd ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=sonyprd'
Tried the script from both Primary and auxiliary but no luck
[oracle@oracle11gstby admin]$ rman target sys/welcome@sonyprd auxiliary sys/*****@sonyprdstby
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 21 17:26:24 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: SONYPRD (DBID=3131093559)
connected to auxiliary database: SONYPRD (not mounted)
Listener Status from primary:
[oracle@oracle11g ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:08:56
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 20-DEC-2012 17:42:17
Uptime 1 days 0 hr. 26 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "sonyprd.localdomain" has 1 instance(s).
Instance "sonyprd", status READY, has 1 handler(s) for this service...
Service "sonyprdXDB.localdomain" has 1 instance(s).
Instance "sonyprd", status READY, has 1 handler(s) for this service...
The command completed successfully
Listener Status from Standby when database bring to Nomount state:
[oracle@oracle11gstby admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:11:54
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 21-DEC-2012 16:13:47
Uptime 0 days 1 hr. 58 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/oracle11gstby/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11gstby)(PORT=1521)))
Services Summary...
Service "sonyprdstby" has 1 instance(s).
Instance "sonyprdstby", status BLOCKED, has 1 handler(s) for this service...
The command completed successfully
Please provide any work arounds to proceed further in creating the standby database.
Thanks,
Ram.
Edited by: 895188 on Dec 21, 2012 5:50 PM
Edited by: 895188 on Dec 21, 2012 6:09 PM
Edited by: 895188 on Dec 21, 2012 6:22 PMHello;
Script has to be run from auxiliary.
Great details, but what I don't see is how you connect in RMAN.
Example
Start RMAN
$ORACLE_HOME/bin/rman target=sys/@recover2 auxiliary=sys/@reclone
Recovery Manager: Release 11.2.0.2.0 - Production on Wed Feb 22 14:50:31 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: RECOVER2 (DBID=3806912436)
connected to auxiliary database: RECLONE (not mounted)Nothing in your tnsnames or listener jumps out as wrong. I copied them into my text editor and compared against my working ones.
Generally for active duplication I start the future standby on a pfile NOMOUNT.
Auxiliary Instance Initialization Parameters Needed :
DB_NAME
CONTROL_FILES
DB_BLOCK_SIZE
( add extra parameters like DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT instead of using the SET command - clean up standby spfile right after duplication )
Then start RMAN and finally run a single line duplication command.
$ORACLE_HOME/bin/rman target=sys/@primary auxiliary=sys/@standby
RMAN>duplicate target database for standby from active database NOFILENAMECHECK;Best Regards
mseberg -
Migration of Approved Invoices from 11i to R12
Hi All,
I am migrating all approved invoices from 11i to R12 using Invoice Interface tables and "Payables Open Interface Import" Concurrent program.But in R12 the Approval status changes and to "Required" and the Accounted status of distribution line changes to Unprocessed. We do not have the set up for approval work flow process, So the invoice should be validated by "Force Validation" by checking the ‘Allow Force Approval’ in payable options. But when I am running the "Invoice Validation" program the theere is no change in the Approval status.
Please help.
Thanks in Advance,
SubhrakantI am a newbie to Oracle Apps. I guess Oracle Apps use the "sequence" to generate the Key in the Oracle tables or is there some else mechanism.
When migrating Oracle Apps from lower version to higher version, is there any concept of setting the sequence numbers in Oracle Apps or we don't need to take care of this ie the migration handles this automatically.The migration/upgrade script/driver should take of seeded objects,
For your custom objects, you need to verify it yourself.
Thanks,
Hussein -
Issue with Generate Create Script in new ODT 11.1.0.5.10 beta
So I'm trying to determine if there's an issue with the Generate Create Script option in the new ODT 11.1.0.5.10 beta (when you right click on a table in Server Explorer).
The SQL create script that it generates lacks the slash between lines. For example I generated the create script for my User table and this is what was generated:
CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
BEFORE
INSERT
ON "DEV"."SYSTEM_USER_TB"
FOR EACH ROW
begin
select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
end;
In my new Oracle Database Project, if I right click on the script and select "Run" or "Run On", the script fails saying:
Connected.
CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
ERROR at line 2:
ORA-00922: missing or invalid option
If I then add, a slash between lines, the script runs successfully and creates the table/trigger and whatever else just fine. For example, I changed the above generated code to look as follows:
CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
BEFORE
INSERT
ON "DEV"."SYSTEM_USER_TB"
FOR EACH ROW
begin
select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
end;
So, does anyone know if this is a bug? Could I be missing an option to add in the slashes to the generated code? Is there an option to not require the slashes? Could there be another way to execute these scripts?
Seriously, I think I'm having deja vu from the last release of the Dev Tools: Generate Create Script creates scripts that won't run: ORA-00922: missing..
...except this time the documentation says I should be able to use the "Run" and "Run On" commands in the Oracle Database Project (see page 8): http://www.oracle.com/technology/tech/dotnet/pdf/ODT11_whatsnew.pdf
nullThere are 2 issues in the generated script :
1. Missing semicolons at the end of the create stmts
2. Missing slashes
Both of these fixes will be available in the ODT 11.1 release. -
Creating SessionMBean error while deploying OSB through WLSt script
Hi All,
I am trying to deploy my OSB by using WLST scripts.
After setting the required properties in files,I ran the import.py script.But I got an error while creating an session bean
I have pasted the whole stcak here.It is going fine till creating a session.After that it is failing:
Any pointers in this regard will be helpful.
****************************the stack************************88
Your environment has been set.
CLASSPATH=E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_class
path\weblogic_patch.jar;E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys
manifestclasspath\weblogic_patch.jar;E:\Oracle\Middleware\patch_ocp353\profile
s\default\sys_manifest_classpath\weblogic_patch.jar;E:\Oracle\Middleware\jrockit
_160_17_R28.0.0-679\lib\tools.jar;E:\Oracle\Middleware\wlserver_10.3\server\lib\
weblogic_sp.jar;E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;E:\Or
acle\Middleware\modules\features\weblogic.server.modules_10.3.3.0.jar;E:\Oracle\
Middleware\wlserver_10.3\server\lib\webservices.jar;E:\Oracle\Middleware\modules
\org.apache.ant_1.7.1/lib/ant-all.jar;E:\Oracle\Middleware\modules\net.sf.antcon
trib_1.1.0.0_1-0b2/lib/ant-contrib.jar;;E:\Oracle\Middleware/Oracle_OSB1/lib/sb-
kernel-api.jar;E:\Oracle\Middleware/Oracle_OSB1/modules/com.bea.common.configfwk
_1.3.0.0.jar;E:\Oracle\Middleware/modules/com.bea.common.configfwk.wlinterop_10.
3.1.0
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: ..\scripts\build.xml
Detected Java version: 1.6 in: E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\j
re
Detected OS: Windows XP
parsing buildfile C:\osb\build\scripts\build.xml with URI = file:/C:/osb/build/s
cripts/build.xml
Project base dir set to: C:\osb\build\scripts
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apach
e/tools/ant/antlib.xml. It could not be found.
[property] Loading Environment env.
[property] Loading C:\osb\build\dev\ant.properties
Build sequence for target(s) `import' is [import]
Complete build sequence is [import, ]
import:
[echo] importscript: c:/osb/build/scripts/import.py
[echo] importconfig: c:/osb/build/dev/import.properties
dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
path\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
as it doesn't exist
dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
0 from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
path\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
as it doesn't exist
dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
0 from path as it doesn't exist
[wlst] <WLSTTask> Executing the command line :
[wlst] E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\jre\bin\java.exe -Dd
ebug=true -DfailOnError=true -DexecuteScriptBeforeFile=true -DpropertiesFile=c:/
osb/build/dev/import.properties -DfileName=c:/osb/build/scripts/import.py -class
path E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-launcher.jar;E:\O
racle\Middleware\jrockit_160_17_R28.0.0-679\lib\tools.jar;E:\Oracle\Middleware\w
lserver_10.3\server\lib\weblogic.jar;E:\Oracle\Middleware\modules\features\weblo
gic.server.modules_10.3.3.0.jar;E:\Oracle\Middleware\wlserver_10.3\server\lib\we
bservices.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-all.jar;
E:\Oracle\Middleware\modules\net.sf.antcontrib_1.1.0.0_1-0b2\lib\ant-contrib.jar
;E:\Oracle\Middleware\Oracle_OSB1\lib\sb-kernel-api.jar;E:\Oracle\Middleware\Ora
cle_OSB1\modules\com.bea.common.configfwk_1.3.0.0.jar;E:\Oracle\Middleware\modul
es\org.apache.ant_1.7.1\lib\ant-antlr.jar;E:\Oracle\Middleware\modules\org.apach
e.ant_1.7.1\lib\ant-apache-bcel.jar;E:\Oracle\Middleware\modules\org.apache.ant_
1.7.1\lib\ant-apache-bsf.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\l
ib\ant-apache-log4j.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\an
t-apache-oro.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-apach
e-regexp.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-apache-re
solver.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-commons-log
ging.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-commons-net.j
ar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-jai.jar;E:\Oracle\M
iddleware\modules\org.apache.ant_1.7.1\lib\ant-javamail.jar;E:\Oracle\Middleware
\modules\org.apache.ant_1.7.1\lib\ant-jdepend.jar;E:\Oracle\Middleware\modules\o
rg.apache.ant_1.7.1\lib\ant-jmf.jar;E:\Oracle\Middleware\modules\org.apache.ant_
1.7.1\lib\ant-jsch.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant
-junit.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-netrexx.jar
;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-nodeps.jar;E:\Oracle\
Middleware\modules\org.apache.ant_1.7.1\lib\ant-starteam.jar;E:\Oracle\Middlewar
e\modules\org.apache.ant_1.7.1\lib\ant-stylebook.jar;E:\Oracle\Middleware\module
s\org.apache.ant_1.7.1\lib\ant-swing.jar;E:\Oracle\Middleware\modules\org.apache
.ant_1.7.1\lib\ant-testutil.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.
1\lib\ant-trax.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-web
logic.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant.jar;E:\Oracl
e\Middleware\modules\org.apache.ant_1.7.1\lib\xercesImpl.jar;E:\Oracle\Middlewar
e\modules\org.apache.ant_1.7.1\lib\xml-apis.jar weblogic.management.scripting.WL
STInterpreterInvoker
dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
path\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
as it doesn't exist
dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
0 from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
path\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
as it doesn't exist
dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
0 from path as it doesn't exist
[wlst] Executing 'E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\jre\bin\j
ava.exe' with arguments:
[wlst] '-Ddebug=true'
[wlst] '-DfailOnError=true'
[wlst] '-DexecuteScriptBeforeFile=true'
[wlst] '-DpropertiesFile=c:/osb/build/dev/import.properties'
[wlst] '-DfileName=c:/osb/build/scripts/import.py'
[wlst] '-classpath'
[wlst] 'E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-launcher.
jar;E:\Oracle\Middleware\jrockit_160_17_R28.0.0-679\lib\tools.jar;E:\Oracle\Midd
leware\wlserver_10.3\server\lib\weblogic.jar;E:\Oracle\Middleware\modules\featur
es\weblogic.server.modules_10.3.3.0.jar;E:\Oracle\Middleware\wlserver_10.3\serve
r\lib\webservices.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-
all.jar;E:\Oracle\Middleware\modules\net.sf.antcontrib_1.1.0.0_1-0b2\lib\ant-con
trib.jar;E:\Oracle\Middleware\Oracle_OSB1\lib\sb-kernel-api.jar;E:\Oracle\Middle
ware\Oracle_OSB1\modules\com.bea.common.configfwk_1.3.0.0.jar;E:\Oracle\Middlewa
re\modules\org.apache.ant_1.7.1\lib\ant-antlr.jar;E:\Oracle\Middleware\modules\o
rg.apache.ant_1.7.1\lib\ant-apache-bcel.jar;E:\Oracle\Middleware\modules\org.apa
che.ant_1.7.1\lib\ant-apache-bsf.jar;E:\Oracle\Middleware\modules\org.apache.ant
_1.7.1\lib\ant-apache-log4j.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.
1\lib\ant-apache-oro.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\a
nt-apache-regexp.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-a
pache-resolver.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-com
mons-logging.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-commo
ns-net.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-jai.jar;E:\
Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-javamail.jar;E:\Oracle\Mi
ddleware\modules\org.apache.ant_1.7.1\lib\ant-jdepend.jar;E:\Oracle\Middleware\m
odules\org.apache.ant_1.7.1\lib\ant-jmf.jar;E:\Oracle\Middleware\modules\org.apa
che.ant_1.7.1\lib\ant-jsch.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1
\lib\ant-junit.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-net
rexx.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-nodeps.jar;E:
\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant-starteam.jar;E:\Oracle\M
iddleware\modules\org.apache.ant_1.7.1\lib\ant-stylebook.jar;E:\Oracle\Middlewar
e\modules\org.apache.ant_1.7.1\lib\ant-swing.jar;E:\Oracle\Middleware\modules\or
g.apache.ant_1.7.1\lib\ant-testutil.jar;E:\Oracle\Middleware\modules\org.apache.
ant_1.7.1\lib\ant-trax.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib
\ant-weblogic.jar;E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\ant.jar;
E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\lib\xercesImpl.jar;E:\Oracle\M
iddleware\modules\org.apache.ant_1.7.1\lib\xml-apis.jar'
[wlst] 'weblogic.management.scripting.WLSTInterpreterInvoker'
[wlst]
[wlst] The ' characters around the executable and arguments are
[wlst] not part of the command.
dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
path\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
as it doesn't exist
dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
0 from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_oepe1033\profiles\default\sys_manifest_class
path\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\patch_ocp353\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar from path as it doesn't exist
dropping E:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar from path
as it doesn't exist
dropping E:\Oracle\Middleware\modules\com.bea.common.configfwk.wlinterop_10.3.1.
0 from path as it doesn't exist
[wlst] Using input " "
[wlst] <WLSTTask> Loaded and set the properties from c:/osb/build/dev/impor
t.properties
[wlst] <WLSTTask> sys.argv is ['c:/osb/build/scripts/import.py']
[wlst] Connecting to server: t3://localhost:7001
[wlst] Connecting to t3://localhost:7001 with userid weblogic ...
[wlst] Successfully connected to Admin Server 'AdminServer' that belongs to
domain 'base_domain'.
[wlst]
[wlst] Warning: An insecure protocol was used to connect to the
[wlst] server. To ensure on-the-wire security, the SSL port or
[wlst] Admin port should be used instead.
[wlst]
[wlst] Location changed to domainRuntime tree. This is a read-only tree wit
h DomainMBean as the root.
[wlst] For more help, use help(domainRuntime)
[wlst]
[wlst] Starting import of: c:/osb/configuration/sbconfig.jar on ALSB Admin
Server: t3://localhost:7001
[wlst] Read import jar file
[wlst] Import file read successfully c:/osb/configuration/sbconfig.jar
[wlst] Creating unique session name
[wlst] Created session name : ALSBImportScript-1279101189649
[wlst] Creating SessionMBean
[wlst] Unexpected error: java.lang.RuntimeException
[wlst] Unexpected error: java.lang.RuntimeException
[wlst] No stack trace available.
[wlst] Traceback (innermost last):
[wlst] File "c:\osb\build\scripts\import.py", line 179, in ?
[wlst] File "c:\osb\build\scripts\import.py", line 47, in importToALSBDom
ain
[wlst] File "c:\osb\build\scripts\import.py", line 167, in getSessionMBea
n
[wlst] File "<iostream>", line 1162, in findService
[wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.newProxy
Instance(MBeanServerInvocationHandler.java:621)
[wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(M
BeanServerInvocationHandler.java:418)
[wlst] at $Proxy11.findService(Unknown Source)
[wlst] at weblogic.management.scripting.WLScriptContext.findService(WLS
criptContext.java:209)
[wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wlst] at java.lang.reflect.Method.invoke(Method.java:597)
[wlst]
[wlst] java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Cl
assNotFoundException: com.bea.wli.sb.management.configuration.DelegatedSessionMa
nagementMBean
[wlst]
[wlst] Exception in thread "Main Thread" java.lang.IllegalStateException: T
raceback (innermost last):
[wlst] File "c:\osb\build\scripts\import.py", line 179, in ?
[wlst] File "c:\osb\build\scripts\import.py", line 47, in importToALSBDom
ain
[wlst] File "c:\osb\build\scripts\import.py", line 167, in getSessionMBea
n
[wlst] File "<iostream>", line 1162, in findService
[wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.newProxy
Instance(MBeanServerInvocationHandler.java:621)
[wlst] at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(M
BeanServerInvocationHandler.java:418)
[wlst] at $Proxy11.findService(Unknown Source)
[wlst] at weblogic.management.scripting.WLScriptContext.findService(WLS
criptContext.java:209)
[wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wlst] at java.lang.reflect.Method.invoke(Method.java:597)
[wlst]
[wlst] java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Cl
assNotFoundException: com.bea.wli.sb.management.configuration.DelegatedSessionMa
nagementMBean
[wlst]
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.printErr
or(WLSTInterpreterInvoker.java:110)
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.executeP
yScript(WLSTInterpreterInvoker.java:103)
[wlst] at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLS
TInterpreterInvoker.java:27)
BUILD FAILED
C:\osb\build\scripts\build.xml:13: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:115)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Total time: 16 seconds
C:\osb\build\dev>^AHi,
I tried debugging it and i am still getting the same error. I used the script provided byoracle and the script which is given here.
Below is the error i am getting :
[java] ImportError: cannot import name SessionManagementMBean
I am getting an error at
def getSessionManagementMBean(sessionName):
SessionMBean = findService("SessionManagement", "com.bea.wli.sb.management.configuration.SessionManagementMBean")
SessionMBean.createSession(sessionName)
return SessionMBean
Its able to create a unique session , after that for creating session name its throwing error.
C:\Development\Build\scripts\build.xml:31: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:115)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Any help on this??
Maybe you are looking for
-
We use the RD Client app from Microsoft on all of our mobile devices. The newest version of RD Client (8.0.8) doesn't work on any iPhones and iPads. It crashes when it tries to connect to the designated remote gateway. All previous versions seems to
-
Connect to Apple TV through iphone hotspot.
My inlaws have a property where they have no land line/Adsl. They use their hotspot to connect to the internet. I was going to try to set up ATV for them and wanted to know if the iphone hotspot would suffice. Or if I could connect the iphone to a
-
Urgent : How to upload a tif file without using upload element
could someone please tell me how to upload a tif file(any file) without using upload element. Function Module GUI_UPLOAD does not work. Please suggest. Appreciate your suggestions.
-
bought referbished macbook pro oct 2011 version, just set it up using time machine and quicklime pro has disappeared. I have quicktime but not quicktime pro. Any ideas? thanks!
-
hi, i want to create query just like cash flow report. but i dont get balance in my query. i have requred balance check out my query. SELECT T1.refdate as 'Reference Date', T2.duedate as 'DueDate', T1.MEM