Database refresh from production to test -how to clean existing test env
All,
My environment is
Both Production and Test databases are in two node RAC environment
Oracle version - 10.2.0.4.0
OS - RHEL5
Production database size 80GB
We need to refresh the test environment from production database. Complete objects, data etc should be refreshed.
We have a datapump export from production environment. With this export dump from production environment, I need to import into test environment.
So far, I have imported with this kind of dump to the fresh database only.
Now, we have already objects, data sitting in the test environment. How to clean the existing test environment and refresh the production datapump export dump.
I thought of dropping all the tablespaces in test (other than system,sysaux, undo and temp). But not able to drop few tablespaces, it is telling that index is available in other tablespaces, dependency errors etc.
Which is the best method to clean the existing test database. Management is not interested in dropping the test database and recreating it.
I understand that you are Newbie , let give me simple steps.
Follow the steps on testing envi.
1. Drop only Application users that you want to refresh from Prod(Do NOT drop users system,sysaux.. or tablespaces)
2. Create the users that you dropped.
3. using import or import data pump import the data.
In case you want to import user"A" data to "B" use REMAP_SCHEMA option.
See the below link for data pump export/import with examples.
http://oracleracexpert.blogspot.com/2009/08/oracle-data-pump-exportimport.html
Hope this helps.
Regards,
Satishbabu Gunukula
http://oracleracexpert.blogspot.com
Click here for [How to add and remove OCR|http://oracleracexpert.blogspot.com/2009/09/how-to-add-and-remove-ocr-oracle.html]
Click here in [ Making decisions and migrating your databases |http://oracleracexpert.blogspot.com/2009/08/download-sql-developer-migration.html]
Click here to lean [ Static parameters change in SPFILE and PFILE|http://oracleracexpert.blogspot.com/2009/09/how-to-change-static-parameters-in.html]
Edited by: Satishbabu Gunukula on Sep 14, 2009 5:09 PM
Edited by: Satishbabu Gunukula on Sep 18, 2009 10:35 AM
Similar Messages
-
Database refresh from production to test database
Dear All,
i want to refresh data on test database using production database.Test and production database has same backend structure.
i am using following steps.Please correct if i am wrong any where.
1)Take Full export from producion database
2)DROP SCHEMA ON test database.SKIP schema like sys,system and other oracle schemas.
3)do full import on test database.
is this correct way to refresh the data on other enviornmet.
Thanks.
rajeshuser12071799 wrote:
Dear All,
i want to refresh data on test database using production database.Test and production database has same backend structure.
i am using following steps.Please correct if i am wrong any where.
1)Take Full export from producion database
2)DROP SCHEMA ON test database.SKIP schema like sys,system and other oracle schemas.
3)do full import on test database.
is this correct way to refresh the data on other enviornmet.
Hi,
You can do one correction here :
Instead of taking full export backup , take export of only those schemas which you want to refresh.
You can use datapump to make it faster.
For improving speed please check
http://www.dba-oracle.com/oracle_tips_load_speed.htm
Regards
Rajesh -
Database Refresh From ASM Filesystem to Local Filesystem
Hi ALL,
I am performing a database refresh from production server to a demo server. Our Production database is 11.2.0.1 and it is using ASM filesystem to keep the data, redo and other files in ASM disks.
On the other hand demo server is not having ASM, all the database files are stored in a local filesytem.
I have taken a fresh backup of our production database, but I am not sure to perform the restore part as the demo server is not having ASM.
Can anyone suggest me how to perform this, I mean datafile restore from ASM to local filesystem.
Any usefull links will be helpful.
Regards,
ArijitHello,
You can restore the backup of your Production database which is using ASM to your demo server (using file system).
Make sure that the control_files parameter in the pfile/spfile is pointing to the file system location where you want to have contol files located on the demo server.
Next, before you use the restore command to restore the database, provide the location of the datafile where you need to restore using the "set newname" clause.
run
set newname for datafile 1 to '<file-system-location-on-demo-server>';
set newname for datafile 2 to '<file-system-location-on-demo-server>';
restore database;
switch datafile all;
recover database;
} -
Database refresh from cold backup and hotbackup.
How can we perform Database refresh from cold backup and hotbackup?
OracleM wrote:
How can we perform Database refresh from cold backup and hotbackup?I understand that you have Cold/hot backup and you need recover(refresh) this backup?If yes then restore cold/hot backup and
sqlplus "/as sysdba"
startup mount;
recover database using backup controlfile unil cancel;
/*then apply all available archive logs*/
alter database open resetlogs; -
System refresh from Production to Quality
Hi,
We are going for system refresh from Production to Quality. We are at SAP NetWeaver 2004s with 700 release and at 0021 level. Our data base system is DB6 with the release 09.07.0000
I understand that there is a note 886102 available for the system copy. But I would like to know how that had been practically implemented from your ready documents like
1. What would be the BI consultant role during the refresh (I mean where do we involve at). I have seen many links related to this but nothing answer my question, so please don't give me links available.
2. How to identify tables that need to be copied and restored to retain the correct source systems for data/info sources.
3. What should be the BI consultant task before refresh?
4. What should be the BI consultant task post refresh?
5. What are issues faced post refresh in quality system.
I request, the consultant who had worked on these refresh can provide me correct solution.
Thanks in advance.
Regards.
RajOur prerefresh activities included
Inform security team to do no user or authorisation changes for quality during the refresh.
Set message in development to not release any transports anymore and set message in quality to inform users in quality not to manually import transports into quality and also not approve transports for production. This ensures no transports get moved to quality and production.
Switch off cyclic import all job (like TMS_0000000038TMS_TP_IMPORT) and the cyclic RSTMS_DIST_APPROVED_REQUESTS job
Prepare list of transports for re-import to quality after refresh and give this to BASIS.
Post refresh activities included
Tcodes SM37, SM35 and SP01. Check that BASIS had set all released jobs to status "Susp/Released"
"All jobs are in 'Susp/Released' state. Set them all to 'Scheduled ' as follows:
- Run report BTCTRNS2 to change all to 'Released'.
- Immediately use SM37 to change all to 'Scheduled' "
IF ANY ARE NEEDED. Remember to change Exec Target in any job you need to release.
"Schedule RSTMS_DIST_APPROVED_REQUESTS to run at x:29 and x:59 - so every 30 minutes.
Please schedule with DDIC as step user (and not your own user-id)."
Check the STMS_QA and import queues to be sure that the tranports are correct- no extra ones during refresh???
Once happy with the above request that Basis schedule the auto import to run every 30 minutes
First ensure that BDLS has finished and system is ready for use.
Post refresh issues faced in production
Many reinit issues
ACR issues.
Master data issues. -
XELSYSADM account locked out repeatedly after a refresh from production
Hello,
We recently refreshed OIM in dev with OIM from production. I used the OIM web console to change the password for XELSYSADM in dev.
I am observing a repeated problem of user XELSYSADM exceeding the number of allowed attempts to login and the XELSYSADM is then locked out. I used SQLDeveloper to unlock the user. However, the same problem comes back.
What did I miss as part of the settings in DEV after the refresh from production?
Thanks
KhanhI would suggest you check the logs to see when the issue happens and it might show you some other clue to why it's happeneing.
-Kevin -
hi Friends ,i need a suggestion from you on how to
insert data to all tables on a Database "A " on Test server
Select data from all tables on a Database "A" on Production Server
where id=123
Database A is same with Structures on Test and Production also all Tables will have Id column in common.
The purpose of this insert is ,as we all know Production has the latest data and i need to push to test server on request for particular ID only ( may be weekly once or twice a week )
I have a linked server setup name "LINQ"
Example for one table is below , like wise i need a script which does for 154 tables.
Insert into ABC( id, name)---insert to test server
Select Id, name from LINQ.ProdSerevrname.databasename.ABC where id = 123
Please help me ..
ThanksWhy not use export import wizard for this if you've read access to production?
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
Problem with refresh from production
Hi,
I got restored files from production.
Now i have created a script for control file..
startup nomount
create controlfile set database "abc" resetlogs noarchivelog
when i am running this file in mount state it is showing error
that database name xyz in file header does not match with given name abc
Please suggest me solution.
ThanksHi,
As you are restoring datafile , i hope you are storing on same database structure means having controlfile of same database, etc on testing db or other . then only database will open . then try to rename the Database.....
Regards.
Rajesh -
Database refresh from db A to db B and changing the name from B to A
We have two databases A and B, both running on HP-UX environment on different servers. both of 10.2.0.1.0 version.
Now, database A is production with 75.5 GB of data. database B is just skeloton with no user tablespaces.
1.Our requirement is to refresh / clone database A to B. we are fine in recreating the database B like in case of cloning. but we want to avoid recreating database B as much possible.
2. After refresh/clone, database B should be renamed_ to database A.
Can you all please suggest the different methods available both by shutting down / without shutdown of database A and the approximate time taken on each cases.Thanks Sanjay for your suggestion.
As per your case, we need to shutdown database A and delete the database B. We are trying to avoid this case as much as possible.
We are thinking of options like
export/import using datapump,
transportable tablespaces
restoring and recovering from backups
In the above scenarios, we no need to delete the database B and no need to shutdown database A.
Also, I need the approx time for each process and the method to rename the database? -
Database refresh from Prod to UAT
Please check whether i have missed out any step in database refresh in 11.5.10.2
Step 1 preclone executed on source Instance
Step 2 copied all datafiles in backup mode to UAT instance
Step 3 controlfile create and opened db in resetlogs.
Step 4 adcfgclone.pl dbconfig <target context file>
Step 5 Autoconfig executed on both db aswell apps
Is it required to execute adcfgclone.pl dbTechstack and adcfgclone.pl appsTier
environment is apps 11.5.10.2
db 10g
os AIX 5.3Hello,
You will need to run:
perl adcfgclone.pl dbTier [Database Target Context File]
perl adcfgclone.pl appsTier [Appltop Target Context File]
and other tasks as per Section 4: Advanced Cloning Options / 1. Refreshing a Target System
of Note 230672.1 : "Cloning Oracle Applications Release 11i with Rapid Clone"
Regards, Carlo. -
Database refresh from standby database
All,
OS : Sun version : 11.1.0.7
I'm doing database refresh using stand by database datafiles in different server.
1)Disabled Data guard broker in standby database .
2)Copied all datafiles in mount stage to target server (different server)
3)created controlfile and started the database in mount stage in different server
4)Applied all archive log files .
5)But still the database not recovered .
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 10401147296308 generated at 01/13/2012 09:03:43 needed for
thread 1
ORA-00289: suggestion :
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
ORA-00280: change 10401147296308 for thread 1 is in sequence #57879
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc
ORA-00279: change 10401156453328 generated at 01/13/2012 10:48:01 needed for
thread 1
ORA-00289: suggestion :
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
ORA-00278: log file
'/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
needed for this recovery
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Am I missing any steps here ? Please advice me on this .
Thanks.Hi,
When you copy files of standby server to another target server ? - Yesterday.
Is standby is SYNC with primary? or MRP is still running? - ---------yes, standby db is running fine .
Even you can open database with resetlogs after recreating controlfile, no need of recovery too -- >I was unable to open . So went to apply arch files.
Do you have archive of thread 1 is in sequence #57887, -- No , Because sequence 57887 yet generate. I have applied all recent available archive log files.
ORA-00289: suggestion :
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
ORA-00278: log file
'/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
needed for this recovery
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Edited by: 805877 on Jan 12, 2012 10:43 PM -
Dear All;
I am in the post activities of SAP system refresh.
I restored the system using brtools successfully as you can see below:
then I went with the rest of the steps based on sap recomendations, and reached to SAP sql queries:
CREATE USER "OPS$<DOMAIN>\<SID>ADM" DEFAULT TABLESPACE SYSTEM TEMPORARY TABLESPACE PSAPTEMP IDENTIFIED EXTERNALLY;
CREATE USER "OPS$<DOMAIN>\SAPSERVICE<SID>" DEFAULT TABLESPACE SYSTEM TEMPORARY TABLESPACE PSAPTEMP IDENTIFIED EXTERNALLY;
GRANT CONNECT, RESOURCE, SAPDBA TO "OPS$<DOMAIN>\<SID>ADM";
GRANT CONNECT, RESOURCE, SAPDBA TO "OPS$<DOMAIN>\SAPSERVICE<SID>";
CREATE TABLE "OPS$<DOMAIN>\<SID>ADM".SAPUSER (USERID VARCHAR2(256), PASSWD VARCHAR2(256));
INSERT INTO "OPS$<DOMAIN>\<SID>ADM".SAPUSER VALUES ('SAPSR3', '<Password>');
CREATE SYNONYM "OPS$<DOMAIN>\SAPSERVICE<SID>".SAPUSER FOR "OPS$<DOMAIN>\<SID>ADM".SAPUSER;
CONNECT /
GRANT SELECT, UPDATE ON "OPS$<DOMAIN>\<SID>ADM".SAPUSER TO "OPS$<DOMAIN>\SAPSERVICE<SID>";
CONNECT /as sysdba
GRANT CONNECT, RESOURCE TO "OPS$<DOMAIN>\SAPSERVICE<SID>";
GRANT CONNECT, RESOURCE TO "OPS$<DOMAIN>\<SID>ADM";
I checked if all users are on opened state using select USERNAME,ACCOUNT_STATUS from dba_users;
The database is running file, and it is opened, but when I run R3trans -d it gives me RC 12 and i get this error:
*** ERROR => CONNECT failed with sql error '1017'
set_ocica() -> SQL error code 1017
-->oci_get_errmsg (con=0, rc=1017)
OCIErrorGet -> SQL error code: 1017
ORA-01017: invalid username/password; logon denied
DbSlConnect(con=0) -> orc=0, 99=DBSL_ERR_DB
***LOG BY2=>sql error 1017 performing CON
***LOG BY0=>ORA-01017: invalid username/password; logon denied
I used brconnect -u / -f chpass -o PSAPSR3 -p sap so i can reset the password, but still I am getting the same invalid username or password error.
I checked the listener status, and it is running.
Kindly let me know how I can fix my error
Best Regards
~Amal AlounDear Gaurav;
I am running SAP Kernel 720 64bit unicode PL300
The content of my trans log file is the following:
4 ETW000 r3trans version 6.23 (release 720 - 15.05.12 - 20:12:03).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 05.08.2014 - 17:50:30
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: r3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [ dev trc,00000] Tue Aug 05 17:50:30 2014 149 0.000149
4 ETW000 [ dev trc,00000] db_con_init called 27 0.000176
4 ETW000 [ dev trc,00000] set_use_ext_con_info(): rsdb/ssfs_connect not set => ssfs not used 41 0.000217
4 ETW000 [ dev trc,00000] determine_block_commit: no con_hdl found as blocked for con_name = R/3
4 ETW000 28 0.000245
4 ETW000 [ dev trc,00000] create_con (con_name=R/3) 14 0.000259
4 ETW000 [ dev trc,00000] Loading DB library 'dboraslib.dll' ... 44 0.000303
4 ETW000 [ dev trc,00000] DlLoadLib success: LoadLibrary("dboraslib.dll"), hdl 0, addr 000007FEF1650000
4 ETW000 947 0.001250
4 ETW000 [ dev trc,00000] using "E:\usr\sap\TST\SYS\exe\uc\NTAMD64\dboraslib.dll" 18 0.001268
4 ETW000 [ dev trc,00000] Library 'dboraslib.dll' loaded 19 0.001287
4 ETW000 [ dev trc,00000] function DbSlExpFuns loaded from library dboraslib.dll 23 0.001310
4 ETW000 [ dev trc,00000] Version of 'dboraslib.dll' is "720.00", patchlevel (0.215) 242 0.001552
4 ETW000 [ dev trc,00000] function dsql_db_init loaded from library dboraslib.dll 26 0.001578
4 ETW000 [ dev trc,00000] function dbdd_exp_funs loaded from library dboraslib.dll 34 0.001612
4 ETW000 [ dev trc,00000] New connection 0 created 237 0.001849
4 ETW000 [ dev trc,00000] 0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =
4 ETW000 56 0.001905
4 ETW000 [ dev trc,00000] db_con_connect (con_name=R/3) 20 0.001925
4 ETW000 [ dev trc,00000] determine_block_commit: no con_hdl found as blocked for con_name = R/3
4 ETW000 25 0.001950
4 ETW000 [ dev trc,00000] find_con_by_name found the following connection: 16 0.001966
4 ETW000 [ dev trc,00000] 0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =
4 ETW000 36 0.002002
4 ETW000 [ dev trc,00000] -->DbSlConnect(vers=-1, type=0, env='[default env]', userid='[default usr]')
4 ETW000 53 0.002055
4 ETW000 [ dev trc,00000] DIR_CLIENT_ORAHOME is not set as profile nor env. parameter. 574 0.002629
4 ETW000 Assuming using instant client with unspecified location.
4 ETW000 [ dev trc,00000] Register application info. 97 0.002726
4 ETW000 [ dev trc,00000] Oracle client version: 10.2.0.4.0, (dbsl 720 220612, UNICODE[2]) 10033 0.012759
4 ETW000 [ dev trc,00000] Detailed Oracle client (patch) info not available. 30 0.012789
4 ETW000 [ dev trc,00000] Default connection: tnsname ='TST' 73 0.012862
4 ETW000 [ dev trc,00000] -->oci_initialize(con=0, char='UTF16', nchar='AL16UTF16', nls=-1),uc_ln=2
4 ETW000 50 0.012912
4 ETW000 [ dev trc,00000] OCIEnvCreate(mode=16384=OCI_UTF16) returned 0 (for default NLS handle)
4 ETW000 1828 0.014740
4 ETW000 [ dev trc,00000] OCIHandleAlloc(OCI_HTYPE_ERROR, con=0, ErrHp=027944B0) 58 0.014798
4 ETW000 [ dev trc,00000] OCIHandleAlloc(OCI_HTYPE_ERROR, con=0, ErrBt=02796088) 36 0.014834
4 ETW000 [ dev trc,00000] NLS env. settings: lang=41004D00450052004900430041004E00 167 0.015001
4 ETW000 [ dev trc,00000] terr=41004D0045005200490043004100 29 0.015030
4 ETW000 [ dev trc,00000] char=55005400460031003600 22 0.015052
4 ETW000 [ dev trc,00000] Client NLS setting (by OCINlsGetInfo(con=0)): 'AMERICAN_AMERICA.UTF16'
4 ETW000 43 0.015095
4 ETW000 [ dev trc,00000] charset='UTF16', ncharset='AL16UTF16', UNI_ASC=FALSE 19 0.015114
4 ETW000 [ dev trc,00000] Logon as OPS$-user to get SAPSR3's password 28 0.015142
4 ETW000 [ dev trc,00000] Connecting as /@TST on connection 0 (nls 0) ... (dbsl 720 220612, UNICODE[2])
4 ETW000 61 0.015203
4 ETW000 [ dev trc,00000] OCIHandleAlloc(OCI_HTYPE_SVCCTX, con=0, svchp=02795F48) 370 0.015573
4 ETW000 [ dev trc,00000] Allocating server context handle 31 0.015604
4 ETW000 [ dev trc,00000] Attaching to database server TST (con=0, svchp=02795F48, srvhp=0279EFF8)
4 ETW000 74 0.015678
4 ETW000 [ dev trc,00000] Assigning server context 0279EFF8 to service context 02795F48 30008 0.045686
4 ETW000 [ dev trc,00000] OCIHandleAlloc(OCI_HTYPE_SESSION, con=0, usrhp=027ABBE0) 86 0.045772
4 ETW000 [ dev trc,00000] Starting user session: OCISessionBegin(con=0, usr='/', svc=02795F48, srv=0279EFF8, usr=027ABBE0)
4 ETW000 40 0.045812
4 ETW000 [ dev trc,00000] OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR 28164 0.073976
4 ETW000 [ dev trc,00000] OCISessionBegin(OCI_DEFAULT) failed with SQL error 1017: 95 0.074071
4 ETW000 [ dev trc,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 39 0.074110
4 ETW000 [ dbsloci.,00000] *** ERROR => CONNECT failed with sql error '1017' 38 0.074148
4 ETW000 [ dev trc,00000] set_ocica() -> SQL error code 1017 19 0.074167
4 ETW000 [ dev trc,00000] -->oci_get_errmsg (con=0, rc=1017) 20 0.074187
4 ETW000 [ dev trc,00000] OCIErrorGet -> SQL error code: 1017 57 0.074244
4 ETW000 [ dev trc,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 39 0.074283
4 ETW000 [ dev trc,00000] Info: 99=DBSL_ERR_DB, oerr=1017, try to connect with default password.
4 ETW000 38 0.074321
4 ETW000 [ dev trc,00000] Connecting as SAPSR3/<pwd>@TST on connection 0 (nls 0) ... (dbsl 720 220612, UNICODE[2])
4 ETW000 30 0.074351
4 ETW000 [ dev trc,00000] Assigning username to user session: con=0, usrhp= 027ABBE0 23 0.074374
4 ETW000 [ dev trc,00000] Assigning password to user session: con=0, usrhp=027ABBE0 36 0.074410
4 ETW000 [ dev trc,00000] Starting user session: OCISessionBegin(con=0, usr='SAPSR3', svc=02795F48, srv=0279EFF8, usr=027ABBE0)
4 ETW000 133 0.074543
4 ETW000 [ dev trc,00000] Tue Aug 05 17:50:40 2014 9992977 10.067520
4 ETW000 [ dev trc,00000] OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR 33 10.067553
4 ETW000 [ dev trc,00000] OCISessionBegin(OCI_DEFAULT) failed with SQL error 1017: 85 10.067638
4 ETW000 [ dev trc,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 37 10.067675
4 ETW000 [ dbsloci.,00000] *** ERROR => CONNECT failed with sql error '1017' 29 10.067704
4 ETW000 [ dev trc,00000] set_ocica() -> SQL error code 1017 19 10.067723
4 ETW000 [ dev trc,00000] -->oci_get_errmsg (con=0, rc=1017) 18 10.067741
4 ETW000 [ dev trc,00000] OCIErrorGet -> SQL error code: 1017 55 10.067796
4 ETW000 [ dev trc,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 52 10.067848
4 ETW000 [ dev trc,00000] DbSlConnect(con=0) -> orc=0, 99=DBSL_ERR_DB 22 10.067870
4 ETW000 [ dblink ,00000] ***LOG BY2=>sql error 1017 performing CON 58 10.067928
4 ETW000 [ dblink ,00000] ***LOG BY0=>ORA-01017: invalid username/password; logon denied 22 10.067950
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'TST'"
Best Regards
~Amal Aloun -
Unit Tester - How to Rollback After Test Runs?
Nevermind - I figured out my problem.
Edited by: user453545 on Jan 29, 2010 1:08 PM- just so the answer is here if someone else looks at the thread ...
Common practice is to put the rollback in the tear down for the test.
Brian Jeffries
SQL Developer Team -
How to view database values from server to client
hi friends
i have database in server side, i am storing values to the database from client side machine through remote methods. But now i need to view the database values from the server side. how to do this using RMI.
Plz give me suggestion.
by
vinodWhy do you have to use RMI for this task? That way you've got to write both a client and a server. Just use JDBC directly from the server.
-
Was this database migrated from dev or prod?
We have several environments (e.g., development, staging, test, training, production). When migrating a production database to a new version of SQL, we also migrate the related environments. Sometimes the developers want a refresh from production in
development. Sometimes they want the old development database. A question came up about the source of a development database - was it from dev or production? If I'm lucky, the information I want is listed in the following query.
SELECT rh.[restore_date], rh.[destination_database_name], bs.server_name, bs.database_name
FROM [msdb].[dbo].[restorehistory] rh
LEFT JOIN [msdb].[dbo].[backupset] bs ON rh.backup_set_id = bs.backup_set_id
WHERE bs.server_name <> @@SERVERNAME OR rh.destination_database_name <> bs.database_name
If I'm not lucky, the history is no longer present. This is often the case because we don't keep a lot of history. Is there any other metadata that will help me identify where a database came from? Should I insure that the most recent
restore record for an existing db is not cleaned out, no matter how old it is? Thanks.
Randy in MarinI was hoping that the source would have been hidden in a system table some place - reliable and no extra work/politics. I think the answer is looking like, "The information is gone - it can't be done." Yes, a new business process
would certainly provide the information. However, changing organizational behavior is not for the faint of heart.
I think it would be easier to update the history cleanup. This would mean that I can't use msdb.dbo.sp_delete_history as it currently exists. It has very simple logic. I might create a version of my own that keeps the records I want.
https://connect.microsoft.com/SQLServer/feedbackdetail/view/967074/sp-delete-backuphistory-option-to-exclude-special-old-records
Not a bad idea. They could put a "keep" flag on the row and let you set it.
Or you can copy out the rows you like and maintain your own table with your own logic.
It would certainly be nice if every backup kept a record of its own source and wrote that to some read-only location in the restored database, but this does not seem to be the case. Maybe I should file a connect suggestion on that - only my perception
and experience with connect is to not waste my time, most suggestions are misunderstood and rejected out of hand.
But what I was suggesting about the business process contents is that it is already there - any dev source database has developer IDs in it that never occur in production, and production databases have only production IDs that you might see are newer than
anything currently in dev. So no change in business process would be required, just some knowledge of what's already there and a couple of queries to count some differentiating factors.
Josh
Maybe you are looking for
-
Office Web Apps Farm Across Multiple Data Centers?
I have not been able to find any definitive information about this but the article below seems to suggest what I have in mind is not recommended. I am not sure about supported. "Stick to one data center. Servers in an Office Web Apps Server farm mu
-
Help if you can please......
I recently got a new BlackBerry desktop software upgrade ver 6.0. After it was installed, I'm trying to sync my contacts. When I go to configure settings, 2 things happen: 1) a box saying BlackBerry Data Synchronization pops up saying Determining
-
Singleton, Concurrency and Performance
Dear all, Below is part of the code of my Singleton ServiceLocator: public class ServiceLocator { private InitialContext ic; private Map cache; private static ServiceLocator me; static { try { me = new ServiceLocator();
-
How to setup a live USB stick using the latest archlinux 201405
Hello, long time reader, first time poster. I recently purchased a new computer, and I would like to setup arch linux as host OS, so I can see if I could build a LFS system from the Arch Linux live USB drive. When I run the following command "dd if
-
My screen has started to flicker
It's a very high frequency flicker, I first noticed it when the colours on the screen looked less rich, then I noticed it had a flicker that wasn't there before. It does it all the time. Any suggestions?