Views to check the catalog database name from target database.
Hi,
Please help me to find view to check the catalog database name which is connected to my target database because I am new to the current environment where I am working now and the previous DBA have done the set up having 2 catalog database. I want view to check from target database, which can show the catalog database name to which it is connected to.
We can check the catalog database name from the following ways but I want views to check it from target database.
1.TNSnames.ora
2.Any backup script connecting to catalog database.
3.From catalog database we can use rc_database view to check the databases registered with the catalog database.
Please help me to find view to check the catalog database name which is connected to my target databaseYou can check for any RMAN backup jobs that been scheduled on the server.
In the scheduled script check rman command.
You can then identify the database alias (of the catalog db) that is used in the rman backup script.
Once you have found the database alias, check for the database alias entry in tnsnames.ora file present in your target database server.
Once the entry is found, you can find the IP address and catalog db name from the tns entry.
Edited by: st. osh on Nov 22, 2012 11:38 PM
Similar Messages
-
View name in the catalog database which shows the target bkp status
Hi
Can any one tell me the view name in the catalog database
which describes the target database status( succesfull or not)
Thank youYou need to have a little patience. Anyways, if you are taking backup by backup sets, than this view may help.
[RC_BACKUP_SET_DETAILS|http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcviews019.htm]
See if this helps you.
Better option is to configure RMAN backup with the v$session_longops and check it to see whether backup is complete or not.
HTH
Aman.... -
Query to identify the recovery catalog database name from target database
Hi,
How to get the recovery catalog database name from the registered target database?
i dont know my recovery catalog database for my target database.
I know we can use the query
select * from rc_database;
from recovery catalog database to know all the registered database with the recovery catalog but I want to know is there any way or query to identify the recovery catalog database name from target database to which the target database is registered
With Regards
Boobathi PYou can check the backup scripts which you use to backup your target database to get the catalog database name.
And check the corresponding connect string in TNSNAMES.ORA file or tnsping to get the server details of the catalog database.
Edited by: gopal on Apr 12, 2013 12:59 PM -
Is thre any view to check the date & time of switch ovr frm prim to standby
Hi All,
Is there any view to check the date and time of switch over from primary to standby.
Thanks,784786 wrote:
Which parameter of v$database can give us the switchover date and time. Please let me know?
SQL> desc v$database
Name Null? Type
DBID NUMBER
NAME VARCHAR2(9)
CREATED DATE
RESETLOGS_CHANGE# NUMBER
RESETLOGS_TIME DATE
PRIOR_RESETLOGS_CHANGE# NUMBER
PRIOR_RESETLOGS_TIME DATE
LOG_MODE VARCHAR2(12)
CHECKPOINT_CHANGE# NUMBER
ARCHIVE_CHANGE# NUMBER
CONTROLFILE_TYPE VARCHAR2(7)
CONTROLFILE_CREATED DATE
CONTROLFILE_SEQUENCE# NUMBER
CONTROLFILE_CHANGE# NUMBER
CONTROLFILE_TIME DATE
OPEN_RESETLOGS VARCHAR2(11)
VERSION_TIME DATE
OPEN_MODE VARCHAR2(20)
PROTECTION_MODE VARCHAR2(20)
PROTECTION_LEVEL VARCHAR2(20)
REMOTE_ARCHIVE VARCHAR2(8)
ACTIVATION# NUMBER
SWITCHOVER# NUMBER
DATABASE_ROLE VARCHAR2(16)
ARCHIVELOG_CHANGE# NUMBER
ARCHIVELOG_COMPRESSION VARCHAR2(8)
SWITCHOVER_STATUS VARCHAR2(20)
DATAGUARD_BROKER VARCHAR2(8)
GUARD_STATUS VARCHAR2(7)
SUPPLEMENTAL_LOG_DATA_MIN VARCHAR2(8)
SUPPLEMENTAL_LOG_DATA_PK VARCHAR2(3)
SUPPLEMENTAL_LOG_DATA_UI VARCHAR2(3)
FORCE_LOGGING VARCHAR2(3)
PLATFORM_ID NUMBER
PLATFORM_NAME VARCHAR2(101)
RECOVERY_TARGET_INCARNATION# NUMBER
LAST_OPEN_INCARNATION# NUMBER
CURRENT_SCN NUMBER
FLASHBACK_ON VARCHAR2(18)
SUPPLEMENTAL_LOG_DATA_FK VARCHAR2(3)
SUPPLEMENTAL_LOG_DATA_ALL VARCHAR2(3)
DB_UNIQUE_NAME VARCHAR2(30)
STANDBY_BECAME_PRIMARY_SCN NUMBER
FS_FAILOVER_STATUS VARCHAR2(22)
FS_FAILOVER_CURRENT_TARGET VARCHAR2(30)
FS_FAILOVER_THRESHOLD NUMBER
FS_FAILOVER_OBSERVER_PRESENT VARCHAR2(7)
FS_FAILOVER_OBSERVER_HOST VARCHAR2(512)
CONTROLFILE_CONVERTED VARCHAR2(3)
PRIMARY_DB_UNIQUE_NAME VARCHAR2(30)
SUPPLEMENTAL_LOG_DATA_PL VARCHAR2(3)
MIN_REQUIRED_CAPTURE_CHANGE# NUMBERAre you admitting that after reviewing the content of this VIEW, that you see nothing that might contain the detail you desire?
The switch over is also logged to alert_SID.log on both Primary & Standby -
How to get the Portal Page name from PLSQL?
Can anyone tell me how to get the portal page name from my dynamic page using plsql?
Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
My code for attempting to get the page id is below.
<oracle>
declare
v_pageid varchar2(30);
begin
v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
htp.print('Page is '|| v_pageid);
end;
</oracle>
Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
Thanks in advance!
SarahFew clarifications -
1. wwpro_api_parameters cannot be used to get default portal
page parameters such as '_pageid', '_dad', '_schema' etc.,
2. Page information can be obtained through any components which
are available in that particular page. For example, in case of
dynamic page, we need to publish it as a portlet and add it to the
page. This process creates necessary packages in the DB, but we
will not have access to the portlet methods.
So, I would prefer creating a simple DB provider & portlet and access
page title from its show method as follows -
//Declare local variable l_page_id, l_page_title as varchar2
select page_id into l_page_id from wwpob_portlet_instance$ where
portlet_id = p_portlet_record.portlet_id and
provider_id = p_portlet_record.provider_id;
select name into l_page_title from wwpob_page$ where id=l_page_id;
More information on DB provider can be found at
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
Secondly, usage of wwpro_api_parameters.get_value method is
incorrect. This method expects two arguments -
<ul>
<li><b>p_name : </b> The name of the parameter to be returned.</li>
<li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
</ul>
p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
The following code fragment fetches all parameters available
for a portlet.
Note : Copy this code into 'show' method of your portlet.
//Declare l_names, l_values as owa.vc_arr
* Retreive all of the names of parameters for this portlet
l_names := wwpro_api_parameters.get_names(
p_reference_path=>p_portlet_record.reference_path);
* Retreive all of the values of parameters for this portlet
l_values := wwpro_api_parameters.get_values(p_names=>l_names,
p_reference_path=>p_portlet_record.reference_path);
//Loop through these arrays to get parameter information
htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
htp.tableRowClose;
if l_names.count = 0 then
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.p('<td COLSPAN="2">'
||wwui_api_portlet.portlet_text(
'No portlet parameters were passed on the URL.',1)
||'</td>');
htp.tableRowClose;
else
for i in 1..l_names.count loop
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(l_names(i));
htp.tableData(l_values(i));
htp.tableRowClose;
end loop;
end if;
htp.p('</table></center>');
Hope it helps...
-aMJAD. -
Help-Task not found - Please check the Task Type, Name and Location are cor
HI all,
i have upgraded my owb from version 11gr1 to 11gr2. the installation is complete and all my mappings and objects are imported successfully.
i was able to execute the mappings using the sql code:
@/oracle/product/11.2.0/owb/rtp/sql/sqlplus_exec_template.sql
by logging into sqlplus as the user in whose schema mappings are deployed.
hOwever, suddenly i am getting the error since sometime back - not sure what might have happened or what might have gone wrong. can someone please help me understand what might be wrong - how to decode this?
Here is my error:
@/oracle/product/11.2.0/owb/rtp/sql/sqlplus_exec_template.sql
Role set.
Enter value for 1: WSODS
Call completed.
Enter value for 2: ODS_SCHEMA
Enter value for 3: PLSQLMAP
Enter value for 4: MAPPING_1
Enter value for 6: ","
Enter value for 5: ","
Stage 1: Decoding Parameters
| location_name=ODS_SCHEMA
| task_type=PLSQLMAP
| task_name=MAPPING_1
Stage 2: Opening Task
begin
ERROR at line 1:
ORA-20001: Task not found - Please check the Task Type, Name and Location are
correct.
ORA-06512: at "OWBSYS.WB_RT_API_EXEC", line 759
ORA-06512: at "OWBSYS.WB_RT_SCRIPT_UTIL", line 910
ORA-06512: at line 2When i execute this: i get the result as follows:
SELECT warehouse_object_id, store_id, object_type_id, object_type_name, object_name FROM owb$wb_rt_warehouse_objects
where object_name = 'MAPPING_1';
WAREHOUSE_OBJECT_ID STORE_ID OBJECT_TYPE_ID OBJECT_TYPE_NAME OBJECT_NAME
15947 15325 769 PLSQLMap MAPPING_1
1 rows selectedEdited by: Chaitanya on Mar 5, 2012 3:33 AMHi Chaitanya,
Did you get any resolution for this error? I'm facing the same error while trying to execute OWB mapping through this command.
Any help would be much appreciated. Thanks.
Regards,
Jagari -
I want to find the image tag name from Image layer name InDesign JavaScript?
I want to find the image tag name from Image layer name InDesign JavaScript?
Hi,
You can use following script to fetch image tag name and the layer name on which it lie:
var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
for(var i = 0; i< imgBox.length; i++)
if(null != imgBox[i].associatedXMLElement )
var b = imgBox[i]
alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
Hope this would help you to resolve your problem. -
Fm or metod that retrieve the lock object name from the table name
HI ALL,
there is FM or method that retrieve the lock object name from the table name ?
Best regards
NinaCALL FUNCTION 'ENQUEUE_REPORT'
EXPORTING
gclient = sy-mandt
gname = 'RCTMV' "Table Name
GTARG = ' '
GUNAME = SY-UNAME
IMPORTING
number =
SUBRC =
TABLES
enq = lt_seqg3
EXCEPTIONS
communication_failure = 1
system_failure = 2
OTHERS = 3 -
How to know the all user name from system/system login
hi all,
i want to know the all user names from system login who are the existing user like
regards
srinivasHello,
Using DBA_USERS will give more details
select * from dba_users;Regards -
How to retrieve the all user name from system domain(including login user)?
Hi, I am trying to get the system domain all users name. But I unable to get the all user name except domain login user name. I used the below code. What I want to do to get the all user name from system domain. Kindly any one help me.
Properties envVars = new Properties();
Runtime r = Runtime.getRuntime();
String OS = System.getProperty("os.name").toLowerCase();
if ((OS.indexOf("nt") > -1) || (OS.indexOf("windows 2000") > -1 ) || (OS.indexOf("windows xp") > -1) )
p = r.exec( "cmd.exe /c set" );
BufferedReader br = new BufferedReader ( new InputStreamReader( p.getInputStream() ) );
String line;
while( (line = br.readLine()) != null )
int idx = line.indexOf( '=' );
String key = line.substring( 0, idx );
String value = line.substring( idx+1 );
envVars.setProperty( key, value );
String domainDNSName = envVars.getProperty("USERDNSDOMAIN");
String userName = envVars.getProperty("USERNAME");
System.out.println("\n\n\n DOMAIN NAME == "+domainDNSName +" USERNAME == "+userName);
Thanks & Regards
PalaniThanks kajbj,
I don't know, How many users in domain. I neet to get all the user names from my domain. User like A, B,C,D, E,F. I need to get this users name.
public class Env {
public static void main(String[] args) {
System.out.println("USERDOMAIN: " + System.getenv("USERDOMAIN"));
System.out.println("USERNAME: " + System.getenv("USERNAME"));
Here , I am getting the login user name only. So i needs all user name. How to retrive or get this.
Regards
Palani -
Is there any query to know the multiple users name from their ids?
is there any query to know the multiple users name from their ids?
Hi,
Goto TCode SUIM Select Users Select Users by Address Data
It will give you the users list
Regards,
Sankaran -
Want to get the Client Machine name from Oracle Forms
Hi,
I want to get the Client machine name from the Oracle Forms.
I have attached web_util.pll.
I use user_name := webutil_clientinfo.get_host_name;
but i am getting following error - WebUtil Error:WUC-015: Your form must contain the following Bean for this function to be available: oracle.forms.webutil.clientinfo.GetClientInfo.
Can any one help me in this!
Thanks & Regards,
Avinash Bhamare.
Pune.Hi,
I have written the code on when-button-pressed trigger of a push button -
DECLARE
user_name VARCHAR2(50);
BEGIN
user_name := client_win_api_environment.get_computer_name;
message('user_name is :'||user_name);
message('user_name is :'||user_name);
END;
And on clicking on this button i am getting error -
frm-40734:Internal Error:PL/SQL error occurred
Can any one help in this asap please!
Thanks & Regards,
Avinash. -
How to programmatically retrieve the real field name from a view object ?
Dear all,
when I map a business component (a database table) to a view, the fields are automatically converted by JDeveloper, for example, a field named 'user_id' in the oracle table definition, becomes 'userid' in the view.
The question: how can I retrieve the right table column name from within a backing bean ? Please explain also what should I bind and how; should I use an iterator ?
Another more: since we can change the label of a field on a view, how can then I get the mapping between the column name on the view and the column name on the table in the database ?
Thanks in advance,
Sergio.Hi Timo,
many thanks for your answer.
The rest of my question: you know we can drop a view from the DataControls onto a ADF page, with each field of the table having a label.
That label is initially set like the internal table field name, so for instance, if user_id is the real table field name, userid will be the (by JDeveloper) internal renamed table field name, and the label would be userid too.
If I then change the label text to, for example, "myUserid", the question is: how can I know which real table field does "myUserid" point to ?
In other words, when my form is submitted, I want to know which field name has been changed and prepare an update sql in a bean.
For this purpose I bind each view field to a validator function in the bean, and collect al the pairs "label_name + submitted value" in an hash table.
Now inorder to build up that update query, I need the mapping between the label_name ("myUserid") and the real table field name ("user_id"). The question: how to map the label to the real table field name ?
By the way, I'm using JDeveloper 11g rel. 2.
Regards,
Sergio. -
I synced my iTunes with my iPhone 5. some of the titles on't match the songs. I checked my iTunes database, it is the latest version, and the titles and songs all match. So how do I fix this on my iPhone?
Sounds like you may need to re-download the entire albums from iTunes. See this KB article for how to download past purchases: http://support.apple.com/kb/HT2519.
I'd suggest doing it one album at a time. Delete one, download it from your purchase histor, then the next, etc. -
How to identify the Exploded EAR name from the UI
Hi,
I need to do a customization in a page, "Manage Employment" (of 'Human Resources' product family)using Jdeveloper. Is there a way to find the corresponding EAR file from the UI.
When I searched in the UNIX box (under /xx/oracle/fapp/products/fusionapps/applications/hcm/deploy) I can see Ext*.jar file in the following EAR directories.
[ora@xxxxxxxxx deploy]$ find . -name Ext*.jar
./EarHcmCore.ear/APP-INF/lib/ExtHcmCustomization.jar
./EarHcmCoreExternal.ear/APP-INF/lib/ExtHcmCustomization.jar
./EarHcmTalent.ear/APP-INF/lib/ExtHcmCustomization.jar
./EarHcmCompensation.ear/APP-INF/lib/ExtHcmCustomization.jar
./EarHcmPayroll.ear/APP-INF/lib/ExtHcmCustomization.jar
./EarHcmBenefits.ear/APP-INF/lib/ExtHcmCustomization.jar
./EarHcmCoreSetup.ear/APP-INF/lib/ExtHcmCustomization.jar
Which JAR file should I take to customize? Is the file same under different exploded EAR directories. Please let me know.
Thanks,Hi Jani,
I moved the entire EAR directory and the Ext*.jar to my local machine and created the "Customization Application Workspace". I was able to find out the View object to be customized
using the Filter of 'Customizable Archive' as you suggested.
But when I try to edit the page, the Jdeveloper seems to be hanged and I get the following error in the log.
Apr 23, 2013 12:35:52 AM oracle.javatools.buffer.ReadWriteLock traceDeadlock
SEVERE: lock deadlock; thread 'AWT-EventQueue-0' blocked on lock 'BenefitsServic
eCenter.jsff' for more than 20,000ms:
"AWT-EventQueue-0" id=15, blocked, no reads, no writes, no history collected:
at oracle.javatools.buffer.ReadWriteLock.writeLock(ReadWriteLock.java:34
6)
at oracle.javatools.buffer.AbstractTextBuffer.writeLock(AbstractTextBuff
er.java:1045)
at oracle.ide.model.TextNode$FacadeTextBuffer.writeLock(TextNode.java:13
88)
at oracle.mds.internal.dt.dom.MDSDomModelPlugin.acquireWriteLockDirectly
(MDSDomModelPlugin.java:1350)
at oracle.bali.xml.dom.impl.DomModelImpl._acquireWriteLock(DomModelImpl.
java:1632)
at oracle.bali.xml.dom.impl.DomModelImpl.acquireWriteLock(DomModelImpl.j
ava:486)
I use the below memory setting in the Jdev start command script.
set USER_MEM_ARGS=-Xms256m -Xmx1250m -XX:MaxPermSize=1024m -XX:CompileThreshold=8000
Also I have done the appropriate memory settings in jdev.conf and ide.conf files as suggested in the Fusion Applications Developer guide.
Can you please help?
Thanks,
Maybe you are looking for
-
Portege M750 and Win8.1 Pro -tablet buttons don't work
Hi I'm having difficulties installing the tablet buttons in WINDOWS 8.1 Pro. Everything else works, perfectly. In Windows 8 Pro this buttons worked nicely, but now, after a clean install of Windows 8.1 Pro two of the buttons don't work. The buttons a
-
Asmtool: Unable to clear device
I need some help with this problem. I saw that another user posted a similar issue back in February, but there were no replies to that posting - We are installing oracle 10gR2 in RHEL4, and we have decided to use oracle Automatic Storage Management f
-
How to create an exceptions table
I am trying to record the records that fail to load in my dimension and fact mappings. I found the Constraint Management option for "Exception Table Name" but I could not find how to create the table i.e. What is the structure of the table and if the
-
Any call filtering on CallManager 4 or 5?
I know Cisco Personal Assistant will be fade out. I just wonder if there is any call filtering feature on CallManager so that end user can create their own call rules to block / permit the call etc (just like IPMA call filtering). Thanks for help.
-
Unacceptable behavior from software protection service
I was using computer with windows 8.1 and everything shuts down and reboots. I look at system logs and it states System unexpectedly shut down. Also Computer was improperly shut down. I go to application and find entry Successfully scheduled Softwa