connection to the forms database
HelloIs it possible to connect to a database through forms?
I'm working on forms 6i and 10g db.
My requirement is like this.
I am developing a software, which has two types of users
(1) Admin and
(2) normal user
If the user logs on the system as an administrator.
then I need to connect that user to the database 'pay' with username "admin" and "admin" pswd
If the user logs on as a Normal user,.
then he must connect to the same database 'pay' username 'nuser' and pswd "nuser.
Is this possible? How can it be done?
You can use the built-in forms of logon to change the database connection. But before using the connection always use LOGOUT. Because the form is already connected. For ex
LOGOUT;
LOGON(...);
See Form Builder Help.
-Clément
Published by: Hannah on May 2, 2010 11:05
Tags: Oracle Development
Similar Questions
-
Connection to the remote database using Oracle 11 g Builder
Hi all
This could me stupid question, but I have installed Oracle Forms and reports 11g on Win 7 machine. I copied the file "tnsnames.ora' on the record ' ORACLE_HOME/Network/Admin". We use Oracle EBS R12 and I want to create a new report using 11 g.
Using the report wizard after providing a simple query, we need to connect to the database. And even after the entry of TNS, I am getting error connecting to the database, following
"REP-0501: the specified database can be connected.
"ORA-12154: TNS: could not resolve the connect identifier specified.
I am able to connect to the same database using the Report Builder (10.1.2.0). Is there another place where I need to set the TNS entry? How can I solve this error? Please guide...
Kind regards
PriyankaHello
In forms and reports 11g, default defined in tnsnames.ora is: ORACLE_INSTANCE\config.
Please note that the ORACLE_INSTANCE is not the same as ORACLE_HOME.
Example:
ORACLE_HOME = D:\Oracle\Middleware\as_1
ORACLE_INSTANCE = D:\Oracle\Middleware\instances\asinst_1If you set the admin TNS_ADMIN variable in the registry, you can point to a new location for tnsnames.ora
Kind regards
AlexIf someone useful or appropriate please mark accordingly.
-
RC-40201: unable to connect to the TEST database running adcfgclone.pl appsTier
Hi Experts,
While performing a cloning my instance of R12, I got RC-40201 error when I ran "adcfgclone.pl appsTier.
[appltst@oracleupk bin] $ perl adcfgclone.pl appsTier
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Applications Oracle rapid Clone
Version 12.0.0
adcfgclone Version 120.31.12010000.1
Enter the password for APPS:
Running:
/ data/appl_top/apps/apps_st/comn/clone/bin /... / JRE/bin/Java-Xmx600M - cp /data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext EI/data/appl_top/apps/apps_st/comn/clone/bin /... /Context/Apps/CTXORIG.xml-valider - pairsfile /tmp/adpairsfile_24425.lst-stade/data/appl_top/apps/apps_st/comn/clone 2 > /tmp/adcfgclone_24425.err; ECHO $? > /tmp/adcfgclone_24425.res
Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log
Provide the values required for the creation of the new file APPL_TOP context.
Target System Hostname (virtual or normal) [oracleupk]:
SID data system target: TEST
Target database system [oracleupk] server node:
Target system Base Directory: / data / appl_top
Target system tools ORACLE_HOME directory [/ data/appl_top/apps/tech_st/10.1.2]:
Target Web ORACLE_HOME directory system [/ data/appl_top/apps/tech_st/10.1.3]:
Target system APPL_TOP directory [/ data/appl_top/apps/apps_st/appl]:
Target system COMMON_TOP directory [/ data/appl_top/apps/apps_st/comn]:
Target system Instance home directory [/ data/appl_top/inst]:
Target system service root [activated]:
Target Web Entry Point [active] System Services:
Target [active] System Web Application Services:
Target [active] Batch Processing Services system:
Other Services target system [off]:
You want to preserve the display [oracleupk:0.0] (y/n)? : n
Target display system [oracleupk:0.0]: oracleupk:1.0
System Target Pool [0-99] port: 80
Audit of the pool of port 80
fact: Port 80 pool is free
Report file is located at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst
Information available at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst complete port
RC-40201: unable to connect to the TEST database.
Create the new file APPL_TOP context of:
/Data/APPL_TOP/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp
The new context APPL_TOP file was created:
/ Data/APPL_TOP/inst/Apps/TEST_oracleupk/Appl/admin/TEST_oracleupk. XML
Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log
Check the context Clone logfile /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log for more details.
Clone of fast running with the command:
Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method
Running:
Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method
Apps for password:
Start application layer apply - Fri Oct 12 15:01:20 2013
/ données/appl_top/apps/apps_st/comn/clone/bin /... /jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/data/appl_top/apps/apps_st/comn/clone/ jlib/Oui/share.jar:/data/appl_top/apps/apps_st/ Comn/clone/jlib/Oui/srvm.jar:/Data/APPL_TOP/Apps/apps_st/COMN/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyAppsTier EI /data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml-/data/appl_top/apps/apps_st/comn/clone - scene showProgress
Password APPS: log file located at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log
-79% completed
ERROR when executing apply...
Fri Oct 12 15:07:47 2013
ERROR: Cannot run /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl
Contents of the log file: -.
[AutoConfig error report]
The following report lists the errors autoconfig met in each
execution phase. Errors are grouped by directory and by phase.
The format of the report is:
< file name > < phase > < eventually return code >
[INSTALLATION STAGE]
AutoConfig could not successfully run the following scripts:
Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install
adgendbc.sh INSTE8_SETUP 1
afcpnode.sh INSTE8_SETUP 1
afgcsreg.sh INSTE8_SETUP 1
txkWfClone.sh INSTALL_SETUP 1
[PROFILE PHASE]
AutoConfig could not successfully run the following scripts:
Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /data/appl_top/inst/apps/TEST_oracleupk/admin/scripts/adexecsql.pl sqlfile = / data/appl_top/inst/apps/TEST_ oracleupk/admin /. install
afwebprf. SQL INSTE8_PRF 1
amscmprf. SQL INSTE8_PRF 1
amswebprf. SQL INSTE8_PRF 1
bisadmprf. SQL INSTE8_PRF 1
bisdblrp. SQL INSTE8_PRF 1
clnadmprf. SQL INSTE8_PRF 1
cncmprf. SQL INSTE8_PRF 1
cseadmprf. SQL INSTE8_PRF 1
csfadmprf. SQL INSTE8_PRF 1
csiadmprf. SQL INSTE8_PRF 1
eamadmprf. SQL INSTE8_PRF 1
fteadmprf. SQL INSTE8_PRF 1
ibywebprf. SQL INSTE8_PRF 1
icxwebprf. SQL INSTE8_PRF 1
oksfrmprf. SQL INSTE8_PRF 1
wshadmprf. SQL INSTE8_PRF 1
Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install
adadmprf.sh INSTE8_PRF 1
admk80ln.sh INSTALL_PRF 1
afadmprf.sh INSTE8_PRF 1
afcpctx.sh INSTE8_PRF 1
afcpgsm.sh INSTE8_PRF 1 igccmprf.sh INSTE8_PRF 1 jtfictx.sh INSTE8_PRF 1 okladmprf.sh INSTE8_PRF 1 txkJavaMailerCfg.sh INSTE8_PRF 1 txkWebServicescfg.sh INSTE8_PRF 1 [APPLY PHASE]
AutoConfig could not successfully run the following scripts:
Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi/data/appl_top/inst/apps/TEST_oracleupk/admin/install adadmat.pl INSTE8_APPLY 1 Fate of 31 stateful auto-configuration
RC-50014: Fatal: failed to run the auto configuration service
Asked by oracle.apps.ad.clone.ApplyApplTop
ERROR: AutoConfig completed with errors. Check the logfile at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log for more details.
ApplyApplTop completed successfully.
# Check the race situation AutoConfig of ApplyApplTop
WARNING: The autoconfiguration service has completed with errors.
Please help me solve this problem, your prompt response will be highly appreciated.
-Thank you
Ankur
Audit of the pool of port 70
fact: Port pool 70 is free
You used port 70 for the node of the database layer, so you will need to use the same port pool (70 instead of 80) when running "perl adcfgclone.pl appsTier.
Thank you
Hussein
-
DOUBLE DB: ORA-17629: unable to connect to the remote database server
[oracle@ora11g1 ~] $ export ORACLE_SID = sales
[oracle@ora11g1 ~] $ rman target sys/sales@sales
Recovery Manager: release 11.2.0.1.0 - Production Wed Jun 5 13:00:15 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: SALES (DBID = 690066655)
RMAN > Connect auxiliary sys/salestby2@salestby2
connected to the auxiliary database: SALES (not mounted)
RMAN > CURRENT SPFILE DATABASE of TARGET duplicate FOR THE EVE OF the DATABASE
2 > DB_NAME SET = 'sales '.
3 > SET DB_UNIQUE_NAME = "salestby2".
4 > control_files='/u02/oradata/salestby2/control01.ctl','/u02/oradata/salestby2/control02.ctl SET'
5 > SET DB_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / '.
6 > SET LOG_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / ';
From duplicate Db 5 June 13
using the control file of the target instead of recovery catalog database
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 20 type of device = DISK
content of Script memory:
{
backup that copy reuse
TargetFile ' / auxiliary format of the u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsales
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsalestby2' targetfile
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesales.ora' auxiliary format
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora';
clone of SQL 'alter system set spfile = "/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora";
}
execution of Script memory
From backup 5 June 13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 58 type of device = DISK
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:26
ORA-17629: unable to connect to the remote database server
ORA-17627: ORA-01017: name of user and password invalid. connection refused
ORA-17629: unable to connect to the remote database server
continue other job steps, not a not working will not re-run
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 05/06/2013 13:05:27
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:27
ORA-17629: unable to connect to the remote database server
ORA-17627: ORA-01017: name of user and password invalid. connection refused
ORA-17629: unable to connect to the remote database serverWelcome to the oracle forums!
Please take the time to go through [url https://forums.oracle.com/forums/ann.jspa?annID=1535] FAQ PAGE
Always after 4 version oracle numbers and details of the OS.
Post any request outside has put between.
\
Tags
Mark your questions answers if you give the answer
Password for the SYS user on primary and standby must be the same. Copy the master password for the backup server
SCP $ORACLE_HOME/dbs/orapwv112
: /u01/app/oracle/product/11.2/dbs/orapwdupv112 -
problem to connect to the VM database
Hello
I have a host of windows 7 with vmware 8 and a comment running oracle linux version 6 Update 2 for system
x86_64 (64-bit). I installed 11 GR 2 database on this subject. The installation went even though it is OK and the database is in place and
connect very well within the system of comments. The problem is that it does not connect to any part of the outside
the comments system. An attempt to connect results in TNS-12535: TNS:operation has expired. Even the results of tnsping
in the same error.
It's results of tnsping from a customer who is not the host or guest. This client can ping the ip
192.168.1.62.
C:\ > tnsping test
AMT Ping Utility for 32-bit Windows: Release 8.1.7.0.0 - Production on 20 June 20
12 19:03:45
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Try to contact (ADDRESS = (PROTOCOL = TCP)(HOST=192.168.1.62) (PORT = 1521))
TNS-12535: TNS:operation expired
The guest system can ping the computers inside the network, and other systems can ping the guest and the host
systems without any problem. The listener and the database are all the comments system.
The entire communication is inside the firewall, the local network, so the firewall isn't a problem here.
The only solution I've seen on the internet is to remove the /etc/resolv.conf file (does not work) or use
NAT networking for the virtual machine. We use networks bridged with static IP for machinery of the host and the guest
and it seems that others have used the bridged network also.
Is there an obligation to use NAT to make this work? Is there a setting that makes the connection to the guest
database system possible?
Thank you to everyone who is trying to solve this problem.Take a look at EdStevens and other answers on this similar topic
>
You probably did not open port 1521 of the firewall (iptables) of linux comments box.
>
Re: Connectivity between Local OS(windows 7) and Vm OS(Enterprise Linux)Or this link
http://AWADs.NET/WP/2012/02/21/how-to-connect-to-Oracle-database-on-a-guest-VM-from-the-host/If you are looking for 'oracle 11g vm tnsping', you will find a lot of visits.
-
ORA-02019: description of the connection to the remote database not found
Hi all
10.2.0.4 on solaris 10.
I can tnsping and connect to a tnsentry in tnsnames.ora from the server, but when I use the same in dblink, get the error below:
ORA-02019: description of the connection to the remote database not found. Here's the scenario. any idea?
medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 09-NOV-2011 23:49:23 Copyright (c) 1997, 2007, Oracle. All rights reserved. Used parameter files: /medt/oracle/product/102/network/admin/sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon))) OK (20 msec) medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:49:31 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:59:54 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 10-NOV-2011 00:00:02 Copyright (c) 1997, 2007, Oracle. All rights reserved. Used parameter files: /medt/oracle/product/102/network/admin/sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon))) OK (0 msec) medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:07 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medc_pl/medxcdsw3 SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:17 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options SQL> create database link med2con connect to medts_ed identified by medfcv using 'medcon' ; Database link created. SQL> select * from medc@med2con; select * from medc@med2con * ERROR at line 1: ORA-02019: connection description for remote database not found
Try this,
SQL > create database link med2con connect to medts_ed identified by using medfcv ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))';
SQL > select * from medc@med2con;
-
ORA-17629: unable to connect to the remote database server
Hello
I have put Dataguard in place with primary and 1 physical standby for learning/test database:
I do NOT plan the unloading of RMAN backups on the physics of the day before.
Recorded the primary database with RMAN and when "resync catalog db_unique_name all;" is issued.
I get the following error:
---------------------------------------------------------------------------------------------------------------------
RMAN > catalog resync db_unique_name all;
from full resynchronization of the recovery catalog
full complete Resync
resynchronization of data base with DB_UNIQUE_NAME ASTTESTB
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failed to db_unique_name resynchronization command at 28/09/2011 11:34:23
ORA-17629: unable to connect to the remote database server
ORA-17628: Oracle 17629 error returned by remote Oracle Server
------------------------------------------------------------------------------------------------------------------
Configuration of RMAN for the main proceedings are the following:
RMAN > show all to db_unique_name asttest;
RMAN settings for database with db_unique_name ASTTEST are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP # by default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
Configuration of RMAN for instance physical standby are:
RMAN > show all to db_unique_name asttestb;
RMAN settings for database with db_unique_name ASTTESTB are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
----------------------------------------------------------------------------------------------------------------------
When I tested missing missing datafile and control file scenario on the primary database, it worked (Advisor to recover data)
However, missing datafile scenario does not work on the physics of the day before.
Here are the steps I followed:
********************************************
1 renamed a file of physical data - in standby mode:
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf
bash - $3.2 mv rmandg_data01.dbf rmandg_data01.dbf_old
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf_old
2. restore the datafile (find the data file # view v$ recover_file):
RMAN > restore datafile 5;
From restoration to 5 October 11
Segmentation fault
3. in spite of the error, published "recover datafile command.
4 RMAN > recover datafile 5;
From pick up to 5 October 11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 10 type of device = DISK
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:00:40
RMAN-06094: datafile 5 must be restored.
5. manually copy the physical primary datafile - in standby mode, & then problem recover RMAN command:
bash - $3.2 scp oracle@msudrainier:/ora03/oradata/asttest/rmandg_data01.dbf.
rmandg_data01.dbf 100% 50 MB 16.7 MB/s 00:03
bash - $3.2 ls - ltr
Total 159096
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:49 rmandg_data01.dbf_old
-rw - r - 1 oracle oinstall 52436992 5 Oct 12:01 rmandg_data01.dbf
RMAN > recover datafile 5;
From pick up to 5 October 11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:01:59
RMAN-06067: RECOVER the DATABASE required with a backup control file or created
6. of course RMAN commands have failed to restore the missing data file;
So I renamed the file to original and rebooted repeat services applies - this restore the data file and now the configuration state of the DG is normal.
*********************************************************************************
Not quite sure if I'm still he hands the right way or if the error above is related to RMAN not able to synchronize with the physics of the day before.
The documentation I want to talk to is here (1 paragraph):
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD | http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD]
Any pointers/direction and advise is greatly appreciated.
Best regards
NKI got it!
/home/oracle:STANDBY >$ORACLE_HOME/bin/rman target sys/
catalog / @rcatalog Recovery Manager: Release 11.2.0.1.0 - Production on Fri Oct 7 14:12:10 2011 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: PRIMARY (DBID=1562898590, not open) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; resyncing from database with DB_UNIQUE_NAME PRIMARY starting full resync of recovery catalog RMAN output not resynced for database with DB_UNIQUE_NAME PRIMARY full resync complete If the necessary connection string a target/sys and a catalogue
RMAN target sys /
catalog / @rcatalog I did my standby
Will try the primary
Best regards
mseberg
Work on both. Great question!
connected to target database: PRIMARY (DBID=1562898590) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; starting full resync of recovery catalog full resync complete resyncing from database with DB_UNIQUE_NAME STANDBY RMAN output not resynced for database with DB_UNIQUE_NAME STANDBY RMAN>
Published by: mseberg on October 7, 2011 14:16
Thanks a ton for sticking to it. I'll add this little thing to my web site.
Published by: mseberg on October 7, 2011 14:22
-
connection to the MySQL database
Hello
I have a Mysql database and I am trying to connect using DW. I set up a connection and filled in all the fields by following the instructions in the help section.
The connection seems to be fine (and the connection seems to be the case) to the stage of "connect to the test database" when I get the following message is displayed. "an unidentified error has accurred.
On the connection of database in the field "mySQL server", I put the following " http://64.151.210.1/localhost'. "
The same thing happens if I just "localhost".
The rest of the details are my standard remote connection information
Any help gratefully received
mThanks for getting back to me so fast
I tried, but I still get the "unidentified error".
It is an online database that comes as part of my Web space.
I have MySQL installed on my local computer to connect successfully, see tables etc.?
m -
Connection to the PROD database error: ORA-20
Salvation of DBA
When running custom reports, I get the following error.
Connection to the PROD database error: ORA-20
When I run the same report again, it works fine.
Please tell me why it behaves like this? and advice me please how to fix this.
Best regardsSuresh,
Follow the recommendations of the following note to set the initialization of the PROCESS parameter correctly.
Note: 216205,1 - parameters to initialize database for Oracle Applications Release 11i
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=216205.1Another possible solution is to give your opinion on tune your custom code.
-
OBIEE to connect to the configuration database
Hi, I have configured OBIEE and the only problem I have connects to an Oracle 10g database version, where the data is located. I can open the BI Server repository using the client administration tool and when I choose a database object and choose Show data... in the Properties menu for the connection pool object, it does not connect. I have triple checked that the tnsnames.ora on the UNIX file is correct. Do I need to configure a file to point to the tnsnames.ora file? I guess that's my problem.
I installed on a Unix Solaris OBIEE platform. This is the error I get when you try to run a query in the responses:
Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 12170, message: ORA-12170: TNS: Connect timeout occurred at the call of the OIC OCIServerAttach. [nQSError: 17014] Cannot connect to the Oracle database. (HY000)
Any help would be greatly appreciated.
Thanks in advance!
MikeYou need to set the environment variables for the BI Server 3 find your Oracle client correctly in a Linux/Unix server. Here are the ones I use, you will need to change accordingly to your environment:
export ORACLE_HOME=/opt/app/oracle/product/10.2.0.3
Export TNS_ADMIN = / var/opt/oracle
export LD_LIBRARY_PATH = $ORACLE_HOME/lib32: $LD_LIBRARY_PATHThe TNS_ADMIN variable should point to where you have your tnsnames.ora, ldap.ora etc. These could be in the ./network/admin folder or as in our case in a specific folder the DBAs have installation to keep them separate in the client's file. Now, you need to know where to put these variables. OBIEE installation guide suggests using the script./OracleBI/setup/user.sh to do this, we prefer to put this on a special environment file which is executed when the user who runs the OBIEE connections. We would like to keep separate files OBIEE, so we know that it will not be lost if we upgrade to a new version or remove installation and install again.
-
Informatica Workflow not able to connect to the source database.
Hello
I completed the installation of OBI Apps.All test connections are working properly and I have also configured the relational connection in Informatica Workflow.The passwords, user name and connect string are correct. Tasks that need to connect to the source database fail always when I run an ETL. I checked the logs of these workflow session and he gave me following error:
READER_1_1_1 > DBG_21438 Reader: Source is [UPG11i], [obiee] users
READER_1_1_1 > CMN_1761 Timestamp event: [Fri Sep 05 18:01:37 2008]
READER_1_1_1 > RR_4036 error connection to the database]
Database driver error...
Function name: logon
ORA-12154: TNS: could not resolve the connect identifier specified
Database driver error...
Function name: connect
[Database error: unable to connect to the database using the user [obiee] and the connection string [UPG11i].]
DAC, I am able to connect to the databases. There seems to be a problem in relational connections. What are the drivers involved and where they should be installed.
Help, please.
Thank you and best regards,
Soumya.It seems that the TNS Informatica file is pointing to is not the appropriate for your database entry. The the more safe thing to do is to verify that all the settings Oracle containing information in the source database.
-
Unable to connect to the local database (without using the tnsname)
Hi guys
I have 2 database running on the local computer.
Db1 SID - orcl (install 1)
DB2 SID - unicode (later installation)
Today I stop the basic unicode and stop its respective services.
on the back
I did a sqlplus scott/tiger, I got an error
ORA-12560: TNS:protocol adapter error
That's why
I did a
Set ORACLE_SID = orcl
and I still get the same error.
-------------------------------------------------
So I'm the other way around. I orcl database stop, stop its services and database unicode to START and its services.
I disassembled the ORACLE_SID environment variable.
Now, I have in the command prompt
sqlplus scott/tiger
I am connected to the unicode database!
-------------------------------------------------
Now I ORCL stop unicode data and start...
and I have a
sqlplus scott/tiger@ORCL...
I HAVE no problem to connect to it...
--------------------------------------------------
May I ask why should I provide the TNSname ORCL database and I do not for the UNICODE of the databases...
Both are local on my database.
What's wrong?
Moreover, I am on XP.
Thank you!Set ORACLE_SID = orcl
sqlplus / as sysdba;
sys@ORCL > exitSet ORACLE_SID = unicode
sqlplus / as sysdba;
sys@Unicode > exitWell, we know that both your DBs are working properly.
So out of curiosity, I did cela tests...
(1) connect the two database and stop
(2) stop their services
(3) start only ORCL service
(4) close and reopen the command prompt to delete the var of environment ORACLE_SIDsqlplus / as sysdba;
Error: ORA-12560: TNS: Protocol adapter error(5) now I stop service ORCL
(6) (and I start the service of UNICODE)then I deliver
sqlplus / as sysdba;
sys@Unicode >It seems quite normal. In your registry value ORACLE_SID is, most likely, unicode, the last created: check it out, and if so, you can connect to unicode DB without setting ORACLE_SID, while you will need to set to connect to DB orcl.
When you have more than one DB, you set the ORACLE_SID environment variable before connecting either you use connection strings.
-
Resolved - getting error when connecting to the remote database to the host
Hello
I try to connect to the remote form of database host and get error. Can someone please help.
I've seen a few threads about similar issues, but I am not able to solve this problem.
I use Oracle Apps 12.2.0, Linux 5.1, Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit, using SQL Developer to connect.
I am able to connect using SQL Developer in distance and using the same credentials in SQL Developer host, but in error
Status: Failure-Test failed: IO Error: Connection reset
The host
I am able to ping remote, but cannot tnsping
The tnsping error-
Use settings files:
C:\app\oracle\product\12.1.0\dbhome_2\NETWORK\ADMIN\sqlnet.ora
EZCONNECT adapter used to resolve the alias
Try to contact (DESCRIPTION = (CONNECT_DATA = (SERVICE_NAME =)) (ADDRESS = (PROTO
(COL = TCP)(HOST=192.168.1.102) (PORT = 1521)))
AMT-12547: TNS: lost contact
Here are more details
I have added the following in the TNSNAMES file. ORA file
SCREW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102)(Port= 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SCREW)
)
)
I have added the following in the listener
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102)(PORT = 1521))
)
)
Finally - the firewall is disabled in Linux Machine
Can you ping the server IP (or nomhote.nomdomaine) address of the client machine?
What is the error you get when you issue "tnsping SCREWS" of the client machine?
You have added the following entry to your client's tnsnames.ora file?
+++++++++++++++++++++
SCREW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102)(Port= 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SCREW)
)
)
+++++++++++++++++++++
Can you reproduce the problem with sqlplus? If so, please see (11.5.10 news: run SQL * Net access for guests (Doc ID 291897.1)).
If the problem with SQL Developer only, please see (SQLDeveloper receives ' java.sql.SQLRecoverableException: IO Error: Connection reset "and ORA - 609 database alert (Doc ID 1483287.1)).
Thank you
Hussein
-
Connect to the Oracle database fails when you use Microsoft ODBC or OLE DB Driver
There was a problem when you apply the KB3126587 hotfix where connections to an Oracle database using the Microsoft ODBC driver fails if run from automated processes. Running the same process manually would succeed. The update issued KB3147071 solved the problem successfully.
Yesterday, several patched have been applied and the problem came back. The patches are: KB2862152, KB2868626, KB3163244, KB3168965, KB3170455, KB3163251.
I saw yet no acknowledgement or difficulty of Microsoft. I prefer not to uninstall security patches, but it is a problem of production.
Any ideas what specific patch maybe breaking it again?
Thank you
Josh
Server: Windows 2008 R2
Hello
Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.
http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer
See you soon.
-
SharePoint [IM002] connect to the navision database error
original title: sharepoint error
When I tried to connect the navision database. I get an error message ' ERROR [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified ". My connection string is:
DSN = Microsoft Dynamics NAV database"Please, help me to delete this task.
Thanks in advance
Hi,
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
http://social.technet.Microsoft.com/forums/en-us/sharepoint2010general/threads
Maybe you are looking for
-
Open message window is too big
When I double-click on a message, it opens in a new window, which is what I want. The problem is too big for one of my two monitors. I can manually move the window with a tedious combination of keystrokes on the keyboard / mouse clicks, which would a
-
Hair stuck in LCD - iMac 27 "Late-2013
Hello I upgraded my iMac with a shiny new SSD which involved of course out of the screen. I take the screen on an iMac is a no-no, but I'm kinda stuck right now. The upgrade went well, my Mac runs super fast now, but there is now a bit stuck inside m
-
Is it safe to upgrade RAM from 4 GB to 16 GB on mid2012 13 "MBP?
It's time to upgrade RAM and OWC claims it is safe to upgrade to 16 GB on my mid-2012 13 "MBP with 2.5 GHz processor Intel Core i5 and 500 GB hard drive, but everything on the Apple site indicates upgrade max is 8 GB. I want speed, but worry, it coul
-
Cliq 2.1 - updated?
Looks like there are a good number of detected problems. When are test us a updated version that have these problems solved? Or the next version will go directly to the public? just curious. I'll understand if you cannot answer due to double-super-se
-
HP 4632: HP4632 need to print on 1/2 sheet of paper, how?
My impression is 1/2 sheet of paper. I cut half empty and save to print another 1/2 sheet... On my HP 1010 I just put a pile of leaves 1/2 (so 5.5x8x5) and press on print and it just printed. That tells me that I'm using the wrong size paper. There i