Restore db2 database
Hi,
I am new to the db2 database.I am using db2 database and ECC 6.0 sap version.Now i want to check the db2 restoration.How to crash the db2 database.Please help me.
Regards,
Ranjan
> I am new to the db2 database.I am using db2 database and ECC 6.0 sap version.Now i want to check the db2 restoration.How to crash the db2 database.Please help me.
ehem... how to "crash" the database?
https://www.sdn.sap.com/irj/sdn/db6
--> Administration
Markus
Similar Messages
-
Online DB2 database Copy via backup/restore
Hi Guru's
I am new in the world of DB2 (I am always working with Oracle)
I have to perform an online database copy of our SAP which is running on DB2, but I do not want to use the SAPinst method
I just want to perform it through the backup/restore method as I always do with oracle databases
Which procedure do I have to follow on my source and target SIDs
Regards
RichardHi Richard,
Follow the below step db2 nackup restore activity.
1). Perform full offline or online backup of source system
2). Go to cd /sapmnt/SSID/exe and run the below script
brdb6brt -bm RETRIEVE -es –replace SourceSID=TargetSID,db2SourceSID=db2TargetSID,/db2/SourceSID=/db2/TargetSID
3). Above Generate the script copy the Target System.
4). Offline PRD (Target System) Backup Images copy to Source Path (Any One Path)
5). Stop SAP System only DB2 must be Started.
6). Start the db2 backup redirect restored in Quality System
7). before run the script below activity must be finished.
Make Changes to the restore script
Go to script path
1). Replace Source SID (XXX) with Target SID (XXX)
2). Change the backup location
3). User (source db2sid) USING (Source db2sid Password)
USER db2xxx USING XXX(Password)
8). Restoring Database
Log in db2sid (db2sid) User
Go to backup & script Path
9). Run the below Script
db2 -tvf <script.scr> for exp. db2 -tvf xxx_NODE0000.scr
After successfully restore backup below command run
10). First Check Roll Forward Status
Open DB with the below command
db2 rollforward db <TargetSID> query status – check status of DB
db2 rollforward db <TargetSID> complete
11). Once the copy is complete we can check below parameter and make corrections as per your preprocessing
Db2 list tablespaces show detail (To check tablespaces)
parameter automatic storage & re-sized YES
Check the Archive log (LOGARCHMATH1) path
Log in db2sid & run the below command for change the db2 LOGARCHMATH1 Parameter value.
After successfully change the parameter restart the db2 database
12). Perform below step before the Start SAP System
13). Create SAP connects user using
PATH :- /usr/sap/SID/SYS/global
scdb6up create <connect user password> <sidadm password>
above command will update entry in /sapmnt/SID/global/dscdb6.conf
Regards, -
How to connect application instance to new DB2 database instance
Hi,
Recently we want to transfer the DB2 database instance from old host( db 9.1.7 under windows 2003 r2) to new host( db2 9.7.9 under windows 2008 r2).
Currently system is:
* ECC 6.0 under NW 7.0 SR3
* DB2 9.1.7 running on windows 2003 r2 64bit.
* Kernel : 7.20
*application instance connecting db instance via DB2 CLI
Refer to below steps when doing the migration:
1) backup the db2 9.1 database using offline methods in source system
2) Using the system copy db depending method to restore the db in target system.
3)Running the db6_update_db script on target system for post-upgrade activity.
4) Running the db6_update_client script on source system to update the cli version.
5) Update the parameter SAPDBHOST to new host in default profile in source host(application).
When i try to restarting the sap system services , it still connected to old host.
May i know any other setting i need to do and then this application server can connect to new db instance.
thanks.Hi,
Could you please provide the R3 trans logs after executing R3trans -d command ?
BR,
Kaivalya -
When iam restoring the database getting error
hi ,
when iam restoring the database getting following error :
SELECT schemaname FROM syscat.schemata WHERE schemaname='SAPTOOLS'
SQL1328N An implicit connection attempt failed. The database alias name or database name "TPD" was not found in the local database directory.
SQLSTATE=42705Hi,
What is your ABAP connect user. its should be same as source.
and
SQL1024N
A database connection does not exist.
Explanation
There is no connection to a database. Other SQL statements cannot be processed unless an SQL CONNECT was previously executed.
The command cannot be processed.
User response
If the error occurred when disconnecting from the database, continue processing. If the error occurred on another SQL statement, issue an SQL CONNECT statement and resubmit the command or statement.
IN addition
db2 connect to SID
It will show you the default database schema connection
After that,execute db2 ger db cfg for SID
It will show you the DB2 parameter values for your schema
There`s a concept of DBM or database manager, the configuration of which you can check with:
db2 get dbm cfg
DBM is the super-set and DB Schema is the subset
Thanks
Sadiq
Edited by: sadiq iqbal on Jan 12, 2012 5:57 PM -
Hi Everyone,
I have restored full backup in DR server from PRD. I have message successfully completed.When i am trying start sap. R3trans is failed to connect. it is
DB2 -Database,OS- Linux.I am getting below error.
SQL1026N The database manager is already active.
Activate database failed
R3trans connect failed
DBstartup failed
Regards,
ChanduHi Everyone,
When i am executing command db2 rollforward db sep query status.I am getting
Rollforward Status
Input database alias = test
Number of nodes have returned status = 1
Node number = 0
Rollforward status = DB working
Next log file to be read = S0000097.log
Log files processed = -
Last committed transaction = 2014-05-13-16.37.14.000000
I checked in DR sever log is not available and checked in Prd server logs are available from S0000127 .How to solve it.
Regards,
Chandu -
No suitable driver found error while connecting to remote IBM DB2 database.
While trying to connect to IBM DB2 database on a remote location, though the connection was successful from 'Application Resources', following trace could be recovered while performing 'Run' from 'AppModule':
ERROR:
(oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
----- Level 1: Detail 0 -----
(java.sql.SQLException) No suitable driver found for jdbc:as400://XX.XXX.XX.XXX;naming=system;libraries=TEST;translate binary=true;prompt=false
[891] (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode = Immediate
[892] Creating a new pool resource
[893] BC4JDeployPlatform: LOCAL
[894] Propertymanager: skipping reload of file and system based properties
[895] {{ begin Loading BC4J properties
[896] -----------------------------------------------------------
[897] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
[898] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
[899] Skipping empty Property jbo.default.locale.variant from System Default
[900] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
[901] Skipping empty Property ConnectionMode from System Default
[902] Skipping empty Property HostName from System Default
[903] Skipping empty Property ConnectionPort from System Default
[904] BC4J Property jbo.locking.mode='optimistic' -->(MetaObjectManager) from Client Environment
[905] BC4J Property jbo.txn.disconnect_level='0' -->(SessionImpl) from System Default
[906] Skipping empty Property ApplicationPath from System Default
[907] BC4J Property AppModuleJndiName='model.AppModule' -->(SessionImpl) from Client Environment
[908] Skipping empty Property java.naming.security.principal from System Default
[909] Skipping empty Property java.naming.security.credentials from System Default
[910] Skipping empty Property jbo.user.principal from System Default
[911] BC4J Property jbo.simulate.remote='false' -->(SessionImpl) from System Default
[912] BC4J Property jbo.security.context='oracle.security.jazn' -->(MetaObjectManager) from System Default
[913] Skipping empty Property jbo.object.marshaller from System Default
[914] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
[915] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
[916] BC4J Property jbo.pers.max.active.nodes='30' -->(SessionImpl) from System Default
[917] BC4J Property jbo.validation.threshold='10' -->(SessionImpl) from System Default
[918] BC4J Property jbo.sparse.array.threshold='20' -->(SessionImpl) from System Default
[919] Skipping empty Property jbo.pcoll.mgr from System Default
[920] BC4J Property jbo.txn_table_name='PS_TXN' -->(SessionImpl) from System Default
[921] BC4J Property jbo.txn_seq_name='PS_TXN_seq' -->(SessionImpl) from System Default
[922] BC4J Property jbo.txn_seq_inc='50' -->(SessionImpl) from System Default
[923] BC4J Property jbo.control_table_name='PCOLL_CONTROL' -->(MetaObjectManager) from System Default
[924] BC4J Property jbo.stringmanager.factory.class='use_default' -->(SessionImpl) from System Default
[925] BC4J Property jbo.domain.date.suppress_zero_time='true' -->(MetaObjectManager) from System Default
[926] BC4J Property jbo.domain.bind_sql_date='true' -->(MetaObjectManager) from System Default
[927] BC4J Property jbo.domain.string.as.bytes.for.raw='false' -->(MetaObjectManager) from System Default
[928] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
[929] BC4J Property jbo.323.compatible='false' -->(MetaObjectManager) from System Default
[930] BC4J Property jbo.903.compatible='false' -->(MetaObjectManager) from System Default
[931] Skipping empty Property JBODynamicObjectsPackage from System Default
[932] BC4J Property MetaObjectContextFactory='oracle.jbo.mom.xml.DefaultMomContextFactory' -->(MetaObjectManager) from System Default
[933] BC4J Property jbo.load.components.lazily='false' -->(MetaObjectManager) from System Default
[934] BC4J Property MetaObjectContext='oracle.jbo.mom.xml.XMLContextImpl' -->(MetaObjectManager) from System Default
[935] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
[936] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from Client Environment
[937] BC4J Property oracle.jbo.usemds='true' -->(MetaObjectManager) from System Default
[938] BC4J Property oracle.adfm.usemds='true' -->(MetaObjectManager) from System Default
[939] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
[940] Skipping empty Property HandleName from System Default
[941] Skipping empty Property Factory-Substitution-List from System Default
[942] BC4J Property jbo.project='model.Model' -->(Configuration) from Client Environment
[943] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
[944] WARNING: Property jbo.dofailoverset to null
[945] Skipping empty Property jbo.dofailover from null
[946] WARNING: Property jbo.envinfoproviderset to null
[947] Skipping empty Property jbo.envinfoprovider from null
[948] Skipping empty Property jbo.rowid_am_conn_name from System Default
[949] Skipping empty Property jbo.rowid_am_datasource_name from System Default
[950] WARNING: Property jbo.ampool.writecookietoclientset to null
[951] Skipping empty Property jbo.ampool.writecookietoclient from null
[952] WARNING: Property jbo.doconnectionpoolingset to null
[953] Skipping empty Property jbo.doconnectionpooling from null
[954] WARNING: Property jbo.recyclethresholdset to null
[955] Skipping empty Property jbo.recyclethreshold from null
[956] WARNING: Property jbo.ampool.dynamicjdbccredentialsset to null
[957] Skipping empty Property jbo.ampool.dynamicjdbccredentials from null
[958] BC4J Property jbo.ampool.resetnontransactionalstate='true' -->(SessionImpl) from System Default
[959] BC4J Property jbo.ampool.sessioncookiefactoryclass='oracle.jbo.common.ampool.DefaultSessionCookieFactory' -->(Configuration) from Client Environment
[960] WARNING: Property jbo.ampool.connectionstrategyclassset to null
[961] Skipping empty Property jbo.ampool.connectionstrategyclass from null
[962] WARNING: Property jbo.ampool.maxpoolsizeset to null
[963] Skipping empty Property jbo.ampool.maxpoolsize from null
[964] BC4J Property jbo.ampool.initpoolsize='0' -->(Configuration) from Client Environment
[965] WARNING: Property jbo.ampool.monitorsleepintervalset to null
[966] Skipping empty Property jbo.ampool.monitorsleepinterval from null
[967] WARNING: Property jbo.ampool.minavailablesizeset to null
[968] Skipping empty Property jbo.ampool.minavailablesize from null
[969] WARNING: Property jbo.ampool.maxavailablesizeset to null
[970] Skipping empty Property jbo.ampool.maxavailablesize from null
[971] WARNING: Property jbo.ampool.maxinactiveageset to null
[972] Skipping empty Property jbo.ampool.maxinactiveage from null
[973] WARNING: Property jbo.ampool.timetoliveset to null
[974] Skipping empty Property jbo.ampool.timetolive from null
[975] WARNING: Property jbo.ampool.doampoolingset to null
[976] Skipping empty Property jbo.ampool.doampooling from null
[977] WARNING: Property jbo.ampool.issupportspassivationset to null
[978] Skipping empty Property jbo.ampool.issupportspassivation from null
[979] BC4J Property jbo.ampool.isuseexclusive='true' -->(SessionImpl) from System Default
[980] BC4J Property jbo.passivationstore='null' -->(SessionImpl) from System Default
[981] BC4J Property jbo.saveforlater='false' -->(SessionImpl) from System Default
[982] BC4J Property jbo.snapshotstore.undo='persistent' -->(SessionImpl) from System Default
[983] BC4J Property jbo.maxpassivationstacksize='10' -->(SessionImpl) from System Default
[984] BC4J Property jbo.txn.handleafterpostexc='false' -->(SessionImpl) from System Default
[985] BC4J Property jbo.connectfailover='true' -->(SessionImpl) from System Default
[986] BC4J Property jbo.datasource_naming_factory='oracle.jbo.server.DataSourceContextFactory' -->(MetaObjectManager) from System Default
[987] WARNING: Property jbo.maxpoolcookieageset to null
[988] Skipping empty Property jbo.maxpoolcookieage from null
[989] WARNING: Property PoolClassNameset to null
[990] Skipping empty Property PoolClassName from null
[991] BC4J Property jbo.maxpoolsize='4096' -->(MetaObjectManager) from System Default
[992] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
[993] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
[994] BC4J Property jbo.poolmonitorsleepinterval='600000' -->(MetaObjectManager) from System Default
[995] BC4J Property jbo.poolminavailablesize='5' -->(MetaObjectManager) from System Default
[996] BC4J Property jbo.poolmaxavailablesize='25' -->(MetaObjectManager) from System Default
[997] BC4J Property jbo.poolmaxinactiveage='600000' -->(MetaObjectManager) from System Default
[998] BC4J Property jbo.pooltimetolive='-1' -->(MetaObjectManager) from System Default
[999] BC4J Property jbo.qcpool.monitorsleepinterval='1800000' -->(SessionImpl) from System Default
[1000] BC4J Property jbo.qcpool.maxinactiveage='900000' -->(SessionImpl) from System Default
[1001] BC4J Property jbo.qcpool.maxweight='-1' -->(SessionImpl) from System Default
[1002] BC4J Property RELEASE_MODE='Stateful' -->(MetaObjectManager) from System Default
[1003] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
[1004] BC4J Property jbo.viewlink.consistent='DEFAULT' -->(MetaObjectManager) from System Default
[1005] BC4J Property jbo.finder.range.size='DEFAULT' -->(MetaObjectManager) from System Default
[1006] BC4J Property jbo.passivation.TrackInsert='true' -->(MetaObjectManager) from System Default
[1007] Skipping empty Property jbo.ViewCriteriaAdapter from System Default
[1008] BC4J Property jbo.SQLBuilder='DB2' -->(MetaObjectManager) from Client Environment
[1009] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
[1010] BC4J Property jbo.TypeMapEntries='OracleApps' -->(MetaObjectManager) from Client Environment
[1011] Skipping empty Property jbo.sql92.JdbcDriverClass from System Default
[1012] BC4J Property jbo.sql92.LockTrailer='FOR UPDATE' -->(MetaObjectManager) from System Default
[1013] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
[1014] BC4J Property jbo.abstract.base.check='true' -->(MetaObjectManager) from System Default
[1015] BC4J Property jbo.assoc.where.early.set='false' -->(MetaObjectManager) from System Default
[1016] BC4J Property jbo.use.findbykey.for.assoc='true' -->(MetaObjectManager) from System Default
[1017] BC4J Property jbo.sql92.DbTimeQuery='select sysdate from dual' -->(MetaObjectManager) from System Default
[1018] BC4J Property oracle.jbo.defineColumnLength='skipDefines' -->(MetaObjectManager) from System Default
[1019] BC4J Property jbo.jdbc_bytes_conversion='jdbc' -->(MetaObjectManager) from System Default
[1020] Skipping empty Property jbo.tmpdir from System Default
[1021] Skipping empty Property jbo.server.internal_connection from System Default
[1022] BC4J Property SessionClass='oracle.jbo.server.SessionImpl' -->(SessionImpl) from System Default
[1023] Skipping empty Property TransactionFactory from System Default
[1024] Skipping empty Property jbo.def.mgr.listener from System Default
[1025] Skipping empty Property jbo.use.global.sub.map from System Default
[1026] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
[1027] BC4J Property jbo.debug.prefix='DBG: ' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1028] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1029] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1030] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1031] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1032] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1033] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
[1034] Skipping empty Property oracle.home from System Default
[1035] Skipping empty Property oc4j.name from System Default
[1036] Skipping empty Property jbo.shared.txn from System Default
[1037] BC4J Property oracle.adfm.useSharedTransactionForFrame='true' -->(MetaObjectManager) from System Default
[1038] BC4J Property oracle.adfm.joinNewFrameTransaction='false' -->(MetaObjectManager) from System Default
[1039] BC4J Property jbo.ejb.txntimeout='1830' -->(SessionImpl) from System Default
[1040] BC4J Property jbo.ejb.txntype='global' -->(SessionImpl) from System Default
[1041] BC4J Property jbo.ejb.txn.disconnect_on_completion='false' -->(SessionImpl) from System Default
[1042] BC4J Property jbo.ejb.useampool='false' -->(SessionImpl) from Client Environment
[1043] Skipping empty Property oracle.jbo.schema from System Default
[1044] BC4J Property jbo.xml.validation='false' -->(MetaObjectManager) from System Default
[1045] BC4J Property ord.RetrievePath='ordDeliverMedia' -->(MetaObjectManager) from System Default
[1046] BC4J Property ord.HttpMaxMemory='102400' -->(MetaObjectManager) from System Default
[1047] Skipping empty Property ord.HttpTempDir from System Default
[1048] BC4J Property ord.wmp.classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' -->(MetaObjectManager) from System Default
[1049] BC4J Property ord.qp.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' -->(MetaObjectManager) from System Default
[1050] BC4J Property ord.rp.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' -->(MetaObjectManager) from System Default
[1051] BC4J Property ord.wmp.codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' -->(MetaObjectManager) from System Default
[1052] BC4J Property ord.qp.codebase='http://www.apple.com/qtactivex/qtplugin.cab' -->(MetaObjectManager) from System Default
[1053] Skipping empty Property ord.rp.codebase from System Default
[1054] BC4J Property ord.wmp.plugins.page='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' -->(MetaObjectManager) from System Default
[1055] BC4J Property ord.qp.plugins.page='http://www.apple.com/quicktime/download/' -->(MetaObjectManager) from System Default
[1056] BC4J Property ord.rp.plugins.page='http://www.real.com/player/' -->(MetaObjectManager) from System Default
[1057] BC4J Property jbo.security.enforce='None' -->(SessionImpl) from System Default
[1058] BC4J Property jbo.security.loginmodule='oracle.security.jazn.oc4j.JAZNUserManager' -->(SessionImpl) from System Default
[1059] Skipping empty Property jbo.security.config from System Default
[1060] BC4J Property jbo.server.useNullDbTransaction='false' -->(SessionImpl) from System Default
[1061] BC4J Property jbo.domain.reopenblobstream='false' -->(MetaObjectManager) from System Default
[1062] BC4J Property jbo.server.retainAssocAccessor='false' -->(SessionImpl) from System Default
[1063] BC4J Property jbo.groovy.debug='false' -->(MetaObjectManager) from System Default
[1064] BC4J Property jbo.busevent.suspendpublication='false' -->(SessionImpl) from System Default
[1065] BC4J Property oracle.adfm.DefaultEventPolicy='NONE' -->(MetaObjectManager) from System Default
[1066] BC4J Property oracle.adfm.useRootFrameOnly='false' -->(MetaObjectManager) from System Default
[1067] Copying unknown Client property (user='TESTER') to session
[1068] Copying unknown Client property (FullProxyInterfaceName='model.common.AppModule') to session
[1069] Copying unknown Client property (jbo.applicationmoduleclassname='model.AppModule') to session
[1070] Copying unknown Client property (jbo.jdbc.username='TESTER') to session
[1071] Copying unknown Client property (BC4JConfigName='AppModuleLocal') to session
[1072] Copying unknown Client property (DsPasswd='workout') to session
[1073] Copying unknown Client property (JDBCName='ConnectTo146') to session
[1074] Copying unknown Client property (DsUserName='TESTER') to session
[1075] Copying unknown Client property (name='137E06086E5') to session
[1076] Copying unknown Client property (ApplicationName='model.AppModule') to session
[1077] Copying unknown Client property (LastUsedConfiguration='AppModuleLocal') to session
[1078] Copying unknown Client property (password='*****') to session
[1079] Copying unknown Client property (JDBCDataSource='java:comp/env/jdbc/ConnectTo146DS') to session
[1080] Copying unknown Client property (jbo.jdbc.connectstring='jdbc:as400:/;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false') to session
[1081] Copying unknown Client property (DBconnection='jdbc:as400://;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false') to session
[1082] Copying unknown Client property (jbo.jdbc.password='*****') to session
[1083] }} finished loading BC4J properties
[1084] -----------------------------------------------------------
[1085] Connected to Oracle JBO Server - Version: 11.1.2.61.83
[1086] mPCollUsePMgr is false
[1087] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
[1088] ViewObjectImpl.mDefaultMaxActiveNodes is 30
[1089] Default locking mode changed to: optimistic
[1090] Created root application module: 'model.AppModule'
[1091] Locale is: 'en_US'
[1092] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
[1093] Trying connection: DataSource='oracle.jbo.server.ConnectionPoolDataSource@191d9ad'...
[1094] Using the oracle.jbo.server.ConnectionPoolDataSource to acquire a connection...
[1095] Creating a new pool resource
[1096] Trying connection/3: url='jdbc:as400:/*****' user='TESTER' password='*****' ...
[1097] DBTransactionImpl.initTransaction: Login failed
[1098] java.sql.SQLException: No suitable driver found for jdbc:as400:;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9021)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
[1099] A dead application module instance was detected
[1100] The application module instance was removed from the pool
[1101] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
[1102] Resetting AM=AppModule
[1103] An exception occured during checkout.
[1104] oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9021)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:as400://naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
... 32 more
[1105] JUErrorHandlerDlg.reportException(oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper)
[1106] UIMessageBundle (language base) being initialized
Jun 12, 2012 4:38:26 PM oracle.jbo.jbotester.MainFrame exit
INFO: BC4J Tester exit code(-3)
Process exited with exit code -3.When you use DB2 SQL flavor, the ADF BC use the oracle.jbo.server.DB2SQLBuilderImpl class as an SQLBuilder. This class determines the JDBC driver class name as follows:
1) If the JBO configuration parameter jbo.sql92.JdbcDriverClass in not empty, then the JDBC driver class name is taken from there;
2) If the jbo.sql92JdbcDriverClass parameter is empty, then:
<ul><li>If the JDBC URL starts with "jdbc:db2://", then com.ibm.db2.jcc.DB2Driver
<li>If the JDBC URL starts with "jdbc:oracle:db2", then com.oracle.ias.jdbc.db2.DB2Driver
<li>If the JDBC URL starts with "jdbc:datadirect:db2", then com.ddtek.jdbc.db2.DB2Driver
<li>Otherwise, COM.ibm.db2.jdbc.app.DB2Driver</ul>
(Have a look at the source of the method DB2SQLBuilderImpl.getJDBCDriverClassName(String url) for more details).
It is seen from the log in your first post that the parameter jbo.sql92.JdbcDriverClass is empty. As far as your JDBC URL starts with neither of the prefixes specified above (e.g. your URL starts with "jdbc:as400://"), then you should specify the necessary JDBC driver class in the JBO configuration parameter jbo.sql92.JdbcDriverClass. (You can specify it in the AM configuration parameters or in adf-config.xml).
Dimitar -
Database.LoadDataSet() method is throwing error during retriving data from empty table of IBM DB2 database. It is giving error code "SQL0100W".
“Error Message: 0NO_DATA [02000] [IBM] [DB2 / NT] SQL0100W FETCH, whether there is a line to be UPDATE or DELETE, or of the query result is an empty table .
SQLSTATE = 02000”Hello SharayuPandit,
For issues regarding DB2, i suggest that you could post it to DB2 related forum:
https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000842
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi,
I can't able to restore a database, below is the error,please help me out?
TITLE: Microsoft SQL Server Management Studio
Restore failed for Server 'xxxxx'. (Microsoft.SqlServer.SmoExtended)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: The media set has 2 media families but only 1 are provided. All members must be provided. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&LinkId=20476Basically the error is telling you that when the backup was taken it was made to two backup files rather than one, so the backup was stripped across the two of them. You're now trying to restore the backup using only one of those files, which is why you're
getting the error. To do the restore you need to use both files not just one of them. There's a good discussion of this error here
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/abf50e00-c9b0-4809-9e61-43ed8a53e968/the-media-set-has-2-media-families-but-only-1-are-provided?forum=sqltools which goes into more detail of how you end up in this situation, and also methods you
can use to find out what the second file was (in case you don't know) so you can hopefully track it down. -
How to restore a database backup taken from a SQL Server 2012 instance to SQL Server 2014
I am trying to restore a database backup taken from a SQL Server 2012 instance to my new SQL Server 2014 instance. When I add the .bak through the Mgmt studio UI, it does not seem to find a backup set in the file so I cannot proceed (does not give
me any errors though either. I tried restoring through TSQL command but only got a database restore terminating abnormally error with no other details. How can I restore this database to SQL 2014?Hello,
Please examine SQL Server Error Log and share with us any error you can find. The following article may locate the log:
http://msdn.microsoft.com/en-us/library/ms187109.aspx
Regards,
Alberto Morillo
SQLCoffee.com -
Restored standby database from primary; now no logs are shipped
Hi
We recently had a major network/SAN issue and had to restore our standby database from a backup of the primary. To do this, we restored the database to the standby, created a standby controlfile on the primary, copied this across to the control file locations and started in standby recover and applied the logs manually/registered to get it back up to speed.
However, no new logs are being shipped across from the primary.
Have we missed a step somewhere?
One thing we've noticed is that there is no RFS process running on the standby:
SQL> SELECT PROCESS, CLIENT_PROCESS, SEQUENCE#, STATUS FROM V$MANAGED_STANDBY;
PROCESS CLIENT_P SEQUENCE# STATUS
ARCH ARCH 0 CONNECTED
ARCH ARCH 0 CONNECTED
MRP0 N/A 100057 WAIT_FOR_LOG
How do we start this? Or will it only show if the arc1 process on the primary is sending files?
The arc1 process is showing at OS level on the primary but I'm wondering if its faulty somehow?
There are NO errors in the alert logs in the primary or the standby. There's not even the normal FAL gap sequence type error - in the standby it's just saying 'waiting for log' and a number from ages ago. It's like the primary isn't even talking to the standby. The listener is up and running ok though...
What else can we check/do?
If we manually copy across files and do an 'alter database register' then they are applied to the standby without issue; there's just no automatic log shipping going on...
Thanks
RossHi all
Many thanks for all the responses.
The database is 10.2.0.2.0, on AIX 6.
I believe the password files are ok; we've had issues previously and this is always flagged in the alert log on the primary - not the case here.
Not set to DEFER on primary; log_archive_dest_2 is set to service="STBY_PHP" optional delay=720 reopen=30 and log_archive_dest_state_2 is set to ENABLE.
I ran those troubleshooting scripts, info from standby:
SQL> @troubleshoot
NAME DISPLAY_VALUE
db_file_name_convert
db_name PHP
db_unique_name PHP
dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
dg_broker_start FALSE
fal_client STBY_PHP
fal_server PHP
local_listener
log_archive_config
log_archive_dest_2 service=STBY_PHP optional delay=30 reopen=30
log_archive_dest_state_2 DEFER
log_archive_max_processes 2
log_file_name_convert
remote_login_passwordfile EXCLUSIVE
standby_archive_dest /oracle/PHP/oraarch/PHParch
standby_file_management AUTO
NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE
PHP PHP MAXIMUM PERFORM PHYSICAL S MOUNTED
ANCE TANDBY
THREAD# MAX(SEQUENCE#)
1 100149
PROCESS STATUS THREAD# SEQUENCE#
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
MRP0 WAIT_FOR_LOG 1 100150
NAME VALUE UNIT TIME_COMPUTED
apply finish time day(2) to second(1) interval
apply lag day(2) to second(0) interval
estimated startup time 8 second
standby has been open N
transport lag day(2) to second(0) interval
NAME Size MB Used MB
0 0
On the primary, the script has froze!! How long should it take? Got as far as this:
SQL> @troubleshoot
NAME DISPLAY_VALUE
db_file_name_convert
db_name PHP
db_unique_name PHP
dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
dg_broker_start FALSE
fal_client STBY_R1P
fal_server R1P
local_listener
log_archive_config
log_archive_dest_2 service="STBY_PHP" optional delay=720 reopen=30
log_archive_dest_state_2 ENABLE
log_archive_max_processes 2
log_file_name_convert
remote_login_passwordfile EXCLUSIVE
standby_archive_dest /oracle/PHP/oraarch/PHParch
standby_file_management AUTO
NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE SWITCHOVER_STATUS
PHP PHP MAXIMUM PERFORMANCE PRIMARY READ WRITE SESSIONS ACTIVE
THREAD# MAX(SEQUENCE#)
1 100206
NOW - before you say it - :) - yes, I'm aware that fal_client as STBY_R1P and fal_server as R1P are incorrect - should be PHP - but it looks like it's always been this way! Well, as least for the last 4 years where it's worked fine, as I found an old SP file and it still has R1P set in there...?!?
Any ideas?
Ross -
How do I connect to a DB2 database from Oracle 10G on linux?
Hi
I have tryed to connect to a DB2 database from oracle 10 G on linux.
I have installed unixODBC and a db2 odbc driver. I can connect to the db2 using isql, but oracle comes with this error:
select * from testtable@acc_spc_gr2
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
Could not find symbol 'SQLAllocConnect' in dynamic library
DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'
ORA-02063: preceding 3 lines from ACC_SPC_GR2
What am I doing wrong? Any one have a guide to do this?
- Jesperthis is my complete configuration
Database_
-bash-3.2$ export ORACLE_SID=XE
-bash-3.2$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mié Jul 7 10:04:43 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Conectado a:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Platform_
Linux srvpdf 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux
*/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initDB2DATABASE.init*
#This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
#HS_FDS_CONNECT_INFO = ODBC_DSN
HS_FDS_CONNECT_INFO = prueba
HS_FDS_TRACE_FILE_NAME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/DB2DATABASE.log
HS_FDS_CONNECT_INFO = DB2DATABASE
#HS_FDS_TRACE_LEVEL = debug
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
# Environment variables required for the non-Oracle system
set DB2INSTANCE=is400
listener.ora_
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = DB2DATABASE)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM =hsodbc)
(ENVS = LD_LIBRARY_PATH = /opt/ibm/iSeriesAccess/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.32)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.31)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames.ora_
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvpdf)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
DB2DATABASE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost )(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = DB2DATABASE)
(HS=OK)
odbc.ini_
[prueba]
Description = iSeries Access ODBC Driver
Driver = iSeries Access ODBC Driver
System = xxx.xx.3.2
UserID = xxxxxx
Password = xxxxxx
Naming = 0
DefaultLibraries = QGPL
Database = CHERRYWEB
ConnectionType = 0
CommitMode = 2
ExtendedDynamic = 0
DefaultPkgLibrary = QGPL
DefaultPackage = A/DEFAULT(IBM),2,0,1,0,512
AllowDataCompression = 0
MaxFieldLength = 32
BlockFetch = 1
BlockSizeKB = 128
ExtendedColInfo = 0
LibraryView = 0
AllowUnsupportedChar = 0
ForceTranslation = 0
Trace = 0
odbcinst.ini_
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
[iSeries Access ODBC Driver]
Description = iSeries Access for Linux ODBC Driver
Driver = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
Driver64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup = /opt/ibm/iSeriesAccess/lib/libcwbodbcs.so
Setup64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
UsageCount = 1
CPTimeout =
CPReuse =
System = 172.18.3.2
User = inf5mito
Password = lonco3pue
NOTE1 = If using unixODBC 2.2.11 or later and you want the 32 and 64-bit ODBC drivers to share DSN's,
NOTE2 = the following Driver64/Setup64 keywords will provide that support.
Threading = 2
DontDLClose = 1
ODBC Driver_
-bash-3.2$ cd /opt/ibm/iSeriesAccess/lib
-bash-3.2$ ls -ltr
total 2260
-r-xr-xr-x 1 root root 443939 Apr 5 2008 libcwbxda.so
-r-xr-xr-x 1 root root 94504 Apr 5 2008 libcwbrc.so
-r-xr-xr-x 1 root root 16636 Apr 5 2008 libcwbodbcs.so
-r-xr-xr-x 1 root root 729572 Apr 5 2008 libcwbodbc.so
-r-xr-xr-x 1 root root 998060 Apr 5 2008 libcwbcore.so
and this is my error.
SQL> /
select from display@db2database*
ERROR en línea 1:
ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este
mensaje:
*[Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'*
in dynamic library
*[C079] Failed to load dynamic library*
*'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'*
ORA-02063: 3 lines precediendo a DB2DATABASE
Edited by: user6669081 on 07-jul-2010 6:31 -
Saving Data in SAP and DB2 database
Hi All,
I have an SAP application in which 10 fields are there for the user to enter. Out this 10 fields i need to save 5 fields in SAP database and another 5 in DB2 database.Please help me how to achieve this.
Regards
VEnk@Hi Jesse,
The Citadel database is not a relational database. It's highly optimized for storing lower-rate (non-waveform) channel-by-channel, or "trace" measurement data. Another option you can consider is using DSC and Citadel on the server then writing a utility to export the data from Citdael to an SQL database. --That would solve the problem of having to write a logger application from scratch. You would only have to write the relatively simple application to export the data from Citadel and import it into a relational database.
You could accomplish this two ways. First, DSC includes a set of VIs that will retrieve historical data from Ciatdel. You could use LabVIEW to parse this data and write it to a table in a relational database. Second, Citadel actually includes a locally accessible ODBC interface. (You can query Citadel using an SQL query from the local computer). You could query Citadel using this interface, then write the result to a table in a relational database.
To view Citadel in its native format or query a Citadel database using ODBC from a remote comptuer that comptuer would need to have a licensed DSC RTS installed.
~~ -
Add a DB2 database file in different drive
Dear all,
I would like to add a DB2 database file in different drive which is added recently.
eg: existing DB folders in drive H, now we need to add new data folder from drive J
please help me on this step by step procedure, looking for the earliest reply
regards
sathish
65 96724662Hi,
what you have to do is to extend your tablespace with new containers on the new drive and AVOID REBALANCING !!!
Do do that, you can either use the "alter tablespace" command with the "begin new stripe set" clause, or use
the DBACOCKPIT to extend your tablespace and specify
a new stripe set there.
For details on the "alter tablespace" command see:
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.doc/welcome.htm
and search for "alter tablespace"
kind regards
Thomas -
How to restore a database from host A to host B by using RMAN
Hi there
I wanted to restore 1 database from machine A to machine B with the differente files systemes. I did these steps below, but I have a problem when I restore the controlfile from machine A to machine B.
1-copy the controlfile from machine A to machine B by using OS utility.
2-startup nomount the database on machine B.
3-connect target and catalog RMAN.
4-I have to restore the controlfile from last full backup of the machine A to machine B (see the procedure RMAN).
I have the error messages like:
RMAN> connect target /
RMAN-06006: connected to target database: dbtest (not mounted)
RMAN> connect catalog rman/rman@rcattest
RMAN-06008: connected to recovery catalog database
RMAN> run {
2> allocate channel c1 type 'sbt_tape' ;
3> restore controlfile ;
4> }
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c1
RMAN-08500: channel c1: sid=10 devtype=SBT_TAPE
RMAN-08526: channel c1: VERITAS NetBackup for Oracle8 - Release 3.2GA
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel c1: starting datafile backupset restore
RMAN-08502: set_count=177 set_stamp=419449530 creation_time=19-JAN-01
RMAN-08021: channel c1: restoring controlfile
RMAN-08505: output filename=/db/oracle/dbtest/dbtestcontrol01.ctl
RMAN-03026: error recovery releasing channel resources
RMAN-08031: released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03007: retryable error occurred during execution of command: IRESTORE
RMAN-07004: unhandled exception during command execution on channel c1
RMAN-10035: exception raised in RPC: ORA-19507: failed to retrieve sequential file, handle="5hcg0ilq_1_1", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: sbtrestore: Backup file not found.
RMAN-10031: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIE
nullHi there
I'm also trying to restore a full RMAN backup to our DR site using Netbackup as MML
My scenario is:
We have one tape library at our PROD data center and another one at our DR site both using Netbackup as Storage manager
I performed a full RMAN backup on 4 DLT tapes with recovery catalog at our PROD datacenter, then I removed the 4 tapes and place it in our tape lib at DR site
I tried to import the tapes using bpimport from Netbackup which has been successful up to now
But when I tried to restore controlfile from RMAN, I get the following error:
connected to target database: prod (not mounted)
connected to recovery catalog database
RMAN> run {
2> allocate channel c1 type 'SBT_TAPE';
3> allocate channel c2 type 'SBT_TAPE';
4> allocate channel c3 type 'SBT_TAPE';
5> allocate channel c4 type 'SBT_TAPE';
6> set until time '16-AUG-2005 15:00:00';
7> restore controlfile;
8> }
allocated channel: c1
channel c1: sid=13 devtype=SBT_TAPE
channel c1: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
allocated channel: c2
channel c2: sid=12 devtype=SBT_TAPE
channel c2: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
allocated channel: c3
channel c3: sid=11 devtype=SBT_TAPE
channel c3: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
allocated channel: c4
channel c4: sid=9 devtype=SBT_TAPE
channel c4: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
executing command: SET until clause
Starting restore at 18-AUG-2005:10:28:23
channel c1: starting datafile backupset restore
channel c1: restoring controlfile
output filename=/oracle9i/dba/dbs/control01_drprod.ctl
released channel: c1
released channel: c2
released channel: c3
released channel: c4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/18/2005 10:28:25
ORA-19507: failed to retrieve sequential file, handle="df_t566491965_s8860_p1", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
Failed to process backup file <df_t566491965_s8860_p1>
Anyone mastering this, please help !!
thks
BL -
Tables not shown in connections tree for DB2 databases
Hi!
I often use SQL Developer to connect to our DB2 databases. However, when I expand the desired schema in a DB2 database, the Tables node is empty, although it should not be. There are tables in that schema and I can select data from them, so security is not an issue:
For example:
select tabschema, tabname from syscat.tables where tabschema not like 'SYS%' order by 1,2;
returns many schema names and table names is those schemas. Let's pick one, i.e table name METER_TYPE in schema METER ( there are 4 tables in schema METER)
select count(*) from meter.meter_type
returns: 38
However, the Tables node shows no tables. Tese tables are not Aliases (DB2 slang for synonyms) or views, however, those 2 nodes are also empty when they should not be - we have schemas with aliases and views, which are also NOT shown. The Index node is populated most frequently, but not completely (there are indexes missing).
Here are my details (don't be fooled by java 1.7, the behaviour is the same with 1.6):
DB2 jdbc driver version: 3.57.82
About
Oracle SQL Developer 3.0.04
Version 3.0.04
Build MAIN-04.34
Copyright © 2005, 2011 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.31
Product ID: oracle.sqldeveloper
Product Version: 11.1.2.04.34
Version
Component Version
========= =======
Java(TM) Platform 1.7.0
Oracle IDE 3.0.04.34
Versioning Support 3.0.04.34
Properties
Name Value
==== =====
awt.toolkit sun.awt.X11.XToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
http.nonProxyHosts localhost|localhost.localdomain|127.0.0.1|::1|localhost|alex.localdomain
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 5367470843749639
ide.build MAIN-04.34
ide.conf /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.config_pathname /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun true
ide.java.minversion 1.6.0_04
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir /home/alex/.sqldeveloper
ide.product oracle.sqldeveloper
ide.splash.screen splash.gif
ide.startingcwd "/home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin"
ide.user.dir /home/alex/.sqldeveloper
ide.user.dir.var IDE_USER_DIR
ide.vcs.noapplications true
ide.work.dir /home/alex/sqldeveloper
ilog.propagatesPropertyEditors false
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.printerjob sun.print.PSPrinterJob
java.class.path ../../ide/lib/ide-boot.jar
java.class.version 51.0
java.endorsed.dirs /home/alex/prg/jdk1.7.0/jre/lib/endorsed
java.ext.dirs /home/alex/prg/jdk1.7.0/jre/lib/ext:/usr/java/packages/lib/ext
java.home /home/alex/prg/jdk1.7.0/jre
java.io.tmpdir /tmp
java.library.path /home/alex/prg/oracle/instantclient_11_2::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.protocol.handler.pkgs oracle.jdevimpl.handler
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.7.0-b147
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.7
java.util.logging.config.file logging.conf
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.7.0
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.7
java.vm.vendor Oracle Corporation
java.vm.version 21.0-b17
jdbc.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jdbc/lib/ojdbc6.jar
line.separator \n
log.file.name /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
oracle.home /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.jdbc.mapDateToTimestamp false
oracle.net.tns_admin /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/network/admin
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jlib/orai18n.jar
os.arch amd64
os.name Linux
os.version 2.6.30.10-105.2.23.fc11.x86_64
path.separator :
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sqldev.debug false
sun.arch.data.model 64
sun.awt.enableExtraMouseButtons true
sun.boot.class.path /home/alex/prg/jdk1.7.0/jre/lib/resources.jar:/home/alex/prg/jdk1.7.0/jre/lib/rt.jar:/home/alex/prg/jdk1.7.0/jre/lib/sunrsasign.jar:/home/alex/prg/jdk1.7.0/jre/lib/jsse.jar:/home/alex/prg/jdk1.7.0/jre/lib/jce.jar:/home/alex/prg/jdk1.7.0/jre/lib/charsets.jar:/home/alex/prg/jdk1.7.0/jre/classes
sun.boot.library.path /home/alex/prg/jdk1.7.0/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.desktop gnome
sun.io.unicode.encoding UnicodeLittle
sun.java.command oracle.ide.boot.Launcher
sun.java.launcher SUN_STANDARD
sun.java2d.ddoffscreen false
sun.java2d.pmoffscreen false
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.sax.useDefault true
user.country US
user.dir /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin
user.home /home/alex
user.language en
user.name alex
user.timezone CET
windows.shell.font.languages
Extensions
Name Identifier Version Status
==== ========== ======= ======
Check For Updates oracle.ide.webupdate 11.1.1.4.37.59.31 Loaded
Code Editor oracle.ide.ceditor 11.1.1.4.37.59.31 Loaded
Component Palette oracle.ide.palette1 11.1.1.4.37.59.31 Loaded
Data Miner oracle.dmt.dataminer 11.2.0.1.10.109 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.4.37.59.31 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.4.37.59.31 Loaded
Database UI oracle.ide.db 11.1.1.4.37.59.31 Loaded
Diagram Framework oracle.diagram 11.1.1.4.37.59.31 Loaded
Diagram Javadoc Extension oracle.diagram.javadoc 11.1.1.4.37.59.31 Loaded
Diagram Thumbnail oracle.diagram.thumbnail 11.1.1.4.37.59.31 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.4.37.59.31 Loaded
Extended IDE Platform oracle.javacore 11.1.1.4.37.59.31 Loaded
External Tools oracle.ide.externaltools 11.1.1.4.37.59.31 Loaded
File Support oracle.ide.files 11.1.1.4.37.59.31 Loaded
Help System oracle.ide.help 11.1.1.4.37.59.31 Loaded
History Support oracle.jdeveloper.history 11.1.1.4.37.59.31 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.4.37.59.31 Loaded
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.4.37.59.31 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.4.37.59.31 Loaded
JViews Registration Addin oracle.diagram.registration 11.1.1.4.37.59.31 Loaded
Log Window oracle.ide.log 11.1.1.4.37.59.31 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.4.37.59.31 Loaded
Navigator oracle.ide.navigator 11.1.1.4.37.59.31 Loaded
Object Gallery oracle.ide.gallery 11.1.1.4.37.59.31 Loaded
Oracle IDE oracle.ide 11.1.1.4.37.59.31 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.2.04.34 Loaded
Oracle SQL Developer - 3rd Party Database Browsers oracle.sqldeveloper.thirdparty.browsers 11.1.1.04.34 Loaded
Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Extras oracle.sqldeveloper.extras 1.1.1.04.34 Loaded
Oracle SQL Developer - File Navigator oracle.sqldeveloper.filenavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Antlr3 Translator oracle.sqldeveloper.migration.translation.core_antlr3 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Application Migration oracle.sqldeveloper.migration.application 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Core oracle.sqldeveloper.migration 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 oracle.sqldeveloper.migration.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 Translator oracle.sqldeveloper.migration.translation.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft Access oracle.sqldeveloper.migration.msaccess 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations MySQL oracle.sqldeveloper.migration.mysql 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations T-SQL Translator oracle.sqldeveloper.migration.translation.core 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Teradata oracle.sqldeveloper.migration.teradata 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.04.34 Loaded
Oracle SQL Developer - Object Viewer oracle.sqldeveloper.oviewer 11.1.1.04.34 Loaded
Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 11.1.1.04.34 Loaded
Oracle SQL Developer - Reports oracle.sqldeveloper.report 11.1.1.04.34 Loaded
Oracle SQL Developer - Scheduler oracle.sqldeveloper.scheduler 11.1.1.04.34 Loaded
Oracle SQL Developer - Schema Browser oracle.sqldeveloper.schemabrowser 11.1.1.04.34 Loaded
Oracle SQL Developer - SearchBar oracle.sqldeveloper.searchbar 11.1.1.04.34 Loaded
Oracle SQL Developer - Snippet oracle.sqldeveloper.snippet 11.1.1.04.34 Loaded
Oracle SQL Developer - Spatial oracle.sqldeveloper.spatial 11.1.1.04.34 Loaded
Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 2.0.0.04.34 Loaded
Oracle SQL Developer - Tuning oracle.sqldeveloper.tuning 11.1.1.04.34 Loaded
Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 11.1.1.04.34 Loaded
Oracle SQL Developer - User Extensions Support oracle.sqldeveloper.userextensions 11.1.1.04.34 Loaded
Oracle SQL Developer - Worksheet v2 oracle.sqldeveloper.worksheet 11.1.1.04.34 Loaded
Oracle SQL Developer - XML Schema oracle.sqldeveloper.xmlschema 11.1.1.04.34 Loaded
Oracle SQL Developer Data Modeler oracle.datamodeler 3.0.0.665.2 Loaded
Oracle SQL Developer Data Modeler - Reports oracle.sqldeveloper.datamodeler_reports 11.1.1.04.34 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.4.37.59.31 Loaded
Peek oracle.ide.peek 11.1.1.4.37.59.31 Loaded
Persistent Storage oracle.ide.persistence 11.1.1.4.37.59.31 Loaded
Property Inspector oracle.ide.inspector 11.1.1.4.37.59.31 Loaded
QuickDiff oracle.ide.quickdiff 11.1.1.4.37.59.31 Loaded
Replace With oracle.ide.replace 11.1.1.4.37.59.31 Loaded
Runner oracle.ide.runner 11.1.1.4.37.59.31 Loaded
SQL Developer Patch oracle.sqldeveloper.patch 11.1.2.04.39 Loaded
VHV oracle.ide.vhv 11.1.1.4.37.59.31 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.4.37.59.31 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.4.37.59.31 Loaded
Virtual File System oracle.ide.vfs 11.1.1.4.37.59.31 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.4.37.59.31 Loaded
XML Editing Framework IDE Extension oracle.ide.xmlef 11.1.1.4.37.59.31 Loaded
audit oracle.ide.audit 11.1.1.4.37.59.31 Loaded
classpath: protocol handler extension oracle.jdeveloper.classpath 11.1.1.0.0 Loaded
jdukshare oracle.bm.jdukshare 11.1.1.4.37.59.31 Loaded
mof-xmi oracle.mof.xmi 11.1.1.4.37.59.31 Loaded
oracle.ide.dependency oracle.ide.dependency 11.1.1.4.37.59.31 Loaded
oracle.ide.indexing oracle.ide.indexing 11.1.1.4.37.59.31 Loaded
palette2 oracle.ide.palette2 11.1.1.4.37.59.31 Loaded
status oracle.ide.status 11.1.1.4.37.59.31 LoadedIt doesn't sound like this is the answer in your case, but here is a problem I had with tree icons in 6i which took me a while to figure out.
For some unknown and probably pointless reason, forms converts the tree query to uppercase before executing it. This can cause problems if the sql contains any hardcoded strings. In my case I was doing something like
decode(status,1,'red',2,'green')||icon_name
this resulted in REDicon when my icon was actually redicon.gif
Maybe you are looking for
-
10.3.9 will not start
I have 2 hard drives, and each one has 10.3.9. I have been using the larger drive to start up and store the bulk of my files for about a year (the System on the smaller drive is what I am running from right now). Today when I tuned it on, it got stuc
-
Itunes literally freezes every 10 seconds doing anything
Itunes literally freezes every 5 seconds, anything that i click on eg. music, deleting a song, renaming a song, clicking on the movies tab, basically any basic function of clicking something on itunes. It freezes up for 10-15 secs then works again. A
-
I would like to use a special font in my iPhoto book (hardcover large size). When I Preview the book, the font shows up as it should, but I'm not sure if it gets embedded in the document sent to Apple when you go "Buy Book" or not. Also, books are ge
-
Online apple store...prepared to ship without defects?
is the apple online store ready to ship without the negative black screen effect?Would apple still have the defects in stock and ready to ship out to its customers that bought it at apple.com?Id like to be gauranteed to get a pefect ipod touch if i o
-
We have HP MSL6060 (2 tape drive) library. During Oracle DB backup via RMAN script, obtool command lsvol hangs. We use two RMAN channels to write to both tape drives. Is it because of both tape drives are in use by the OSB, one cannot get output of l