How to find the oracle home directory of a particular database ?
Hi all,
There are multiple databases in our machine server ; there are many oracle9i and many oracle10g databases.
I forgot the directory where I installed a particular database so I want to know how to know the directory path where its oracle_home was. For example C:\Orant\Bin.
Thank you very much indeed
Yea friend .
I m agree with u . Because In my Linux server There are 2 database . I have to use Automatic run script (use dbstart) for Database so that Datbase will be auto up during startup. My default oracle Home for Oracle user is "/ORACLE" and also mention it i Oracle ".bash_profile" .
I give the entry into "/etc/oratab " Like following :
vi /etc/oratab
test1::/oracle:Y
test2::/oracle:Y
But One database (test1) is up during startup the server but another (test2) is not . I dont understand the problem .... can anybody give me some suggestion ?
In this pint , If Oracle Home is the problem then How can I find the Oracle Home regarding these two databases ?
Similar Messages
-
Where can I find the Oracle Home Directory
hi,
When i try to setup SALT g10R3, I will have to specifiy the oracle home directory. I have a global variable $ORACLE_HOME which contains this path : /produits/oracle/product/10.2.0 !
I try to validate but this message appears :
=========================================================================
Choose Oracle Home Directory
1- Specify an Oracle Home
Enter a number: 1
Specify an Oracle Home directory: /produits/weblogic
Path must be absolute and have write permission!
Specify an Oracle Home directory: /produits/oracle/product/10.2.0
=========================================================================
Check Prerequisite
Cannot get registry information from the given Oracle Home Directory:
/produits/oracle/product/10.2.0
Tuxedo has not been installed in this directory, or the registry.xml file has
been manually removed or corrupted.
Type 'back' to select another Oracle Home Directory
Type 'quit' to cancel this installation
[back | quit]: /produits/tuxedo
Type 'back' to select another Oracle Home Directory
Type 'quit' to cancel this installation
[back | quit]: /produits/tuxedo/tuxedo9.1
Type 'back' to select another Oracle Home Directory
Type 'quit' to cancel this installation
[back | quit]: quit
=========================================================================
I don't know how can I solve this problem, someone can help me ?
ThanksHi Todd,
I see a similar error while installiing TSAM 10gR3. Please find the error below. I have Tuxedo 8.1 installed on a Linux base, where i am trying to also install TSAM 10gR3. But when i give the PATH/Location, where Tuxedo 8.1 is installed, it throws the following error. Can you please advise?
===============================================================================
Choose Tomcat Feature
Do you want to install the bundled Tomcat Server?
->1- Install Tomcat
2- Do not install Tomcat
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:
===============================================================================
Oracle Home directory selection
Specify Oracle Home directory: /opt/tuxhome/tuxdom2
registry.xml does not exist in Folder: /opt/tuxhome/tuxdom2
Specify Oracle Home directory: /opt/tuxedo/v81
Error:TUXEDO 10gR3 is not found in the specified directory.
Specify Oracle Home directory: -
PHP 5.0.5 CLI: Am I able to set the Oracle home directory at runtime?
I have two versions of Oracle installed on a SUN Solaris server:
/opt/app/oracle/product/8.1.7
/opt/app/oracle/product/9.2.0
Am I able to set the Oracle home directory at runtime using PHP CLI?
Thanks,The real answer is it depends how PHP loads Oracle. If the loading
occurs when PHP starts and before your script executes then you will
start to see problems. This could be as minor as missing error
message text or it could be more subtle. In general set the Oracle
environment before starting PHP.
What about creating your scripts like:
#!/bin/sh
export ORACLE_HOME=/opt/app/oracle/product/9.2.0
php ...-- cj -
Urgentpls : How to find the Oracle reports and forms version in Unix prompt
Hi,
How to find the Oracle reports and forms version in Unix prompt.
Please give the steps
ThanksI need to check the version of Oracle forms and reportsExample :$ frmcmp.sh -h | head -1
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
$ rwrun.sh 2>/dev/null | head -2 | tail -1
Report Builder: Release 10.1.2.0.2 - Production on Wed Mar 10 11:17:55 2010
$ -
How to find the maximum no of users logged in Database
Hi All,
How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.Vijay wrote:
Hi All,
How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.
select * from v$resource_limit;Lists about 20 different resources with current, maximum and limit on usage. Session count is one of them. I don't think there's any (simple, efficient) way to determine the maximum number of different users of sessions, though.
Regards
Jonathan Lewis -
How to find the CRM related Tables form a Particular DataSource
Hi friends
<b>How to find the CRM related Tables form a Particular DataSource
of BusinessContent.</b>
ex: i had taken CRM - DataSource ........ 0CRM_LEAD_H (Lead Header Data)
for this DS i assign IS and extract data. But i want to Know from which
CRM tables it was comming.
ie ..I want to know the what tables linked to Datasource(0CRM_LEAD_H)
How it has to check?Just for your info, you can find as useful (for a methodology to solve this kind of issue) this weblog:
SAP BW and Business Content Datasources: in pursuit of the origins
Hope it helps!
Bye,
Roberto -
How to find the difference in object definition between two databases
Hi,
Can any one suggest me how to find the difference in object definition between two different databases. Is there any tool or by OEM? If so how?
Regards
Naveenthis link may be helpful...
http://www.dbspecialists.com/scripts.html -
How to find the oracle public repo
Hi,
I found the link to the OVM 2.2.1 public repo somewhere on the internet: http://public-yum.oracle.com/repo/OracleVM/OVM2/2.2.1/base/
However, I want to know how to find above link by browsing oracle.com? I spend almost an hour looking for it on oracle.com but did not come across this link. Is it THAT difficult to browse oracle website? OR Am I doing/missing some stupid thing?
This is just to make sure in future I don't want to google to check the oracle public repo.
Thanks.
Dheeraj.I found it form the Oracle support
-
Dear friends,
I provide full details here ,my database table structure ,data and stored procedure and my problem ,
please review it and provide the solution or any idea to solve my problem.
I am working on a project in which members are added in a tree pattern, and get the payment accordingly.
below is my table structure ,data and stored procedure
CREATE TABLE Associate_Income
ID varchar(30) NOT NULL,
ParentID varchar(30) NULL,
IsLeft tinyint NULL,
IsRight tinyint NULL,
joingdate datetime NOT NULL
go
INSERT Associate_Income
(ID, ParentID, IsLeft, IsRight, joingdate)
SELECT 'Ramesh123', NULL, NULL, NULL '2014-01-03 16:31:15.000' UNION ALL
SELECT 'Sonu', 'Ramesh123', 1, NULL, '2014-01-03 16:45:21.000' UNION ALL
SELECT 'Pawan kumar', 'Ramesh123', NULL, 1, '2014-01-04 16:50:23.000' UNION ALL
SELECT 'Ravi123', 'Sonu', 1, NULL, '2014-01-04 17:03:22.000' UNION ALL
SELECT 'Vineet123', 'Sonu', NULL, 1, '2014-01-04 17:26:01.000' UNION ALL
SELECT 'dev123', 'Ravi123', 1, NULL, '2014-01-05 19:35:16.000' UNION ALL
SELECT 'Mukesh123', 'Ravi123', NULL, 1, '2014-01-05 19:40:41.000' UNION ALL
SELECT 'poonam123', 'Vineet123', 1, NULL, '2014-01-05 19:49:49.000' UNION ALL
SELECT 'monu', 'Pawan kumar', 1, NULL, '2014-01-05 17:32:58.000' UNION ALL
SELECT 'Arti123', 'Pawan kumar', NULL, 1, '2014-01-05 19:54:35.000' UNION ALL
My database table Associate_Income structure and data is as follow:
ID ParentID IsLeft IsRight joingdate
Ramesh123 NULL NULL NULL 2014-01-03 16:31:15.000
Sonu Ramesh123 1 NULL 2014-01-03 16:45:21.000
Pawan kumar Ramesh123 NULL 1 2014-01-04 16:50:23.000
Ravi123 Sonu 1 NULL 2014-01-04 17:03:22.000
Vineet123 Sonu NULL 1 2014-01-04 17:26:01.000
dev123 Ravi123 1 NULL 2014-01-05 19:35:16.000
Mukesh123 Ravi123 NULL 1 2014-01-05 19:40:41.000
poonam123 Vineet123 1 NULL 2014-01-05 19:49:49.000
monu Pawan kumar 1 NULL 2014-01-05 17:32:58.000
Arti123 Pawan kumar NULL 1 2014-01-05 19:54:35.000
by using below stored procedure i can count the total number of pairs under particular node in 2:1,1:1 ratio means first pair is completed when two node added to the left side of given parent node and one node added
right side of given parent node after that all pairs are completed when one node added left side and one node added right side of parent node (1:1 ratio)
example if i execute my stored procedure as follows it would return following.
EXEC count_pairs 'Ramesh123'
3
so there is 3 pairs as shown in my figure.
when we execute my stored procedure for ParentID 'sonu' it would return following.
EXEC count_pairs 'sonu'
2
so there is 2 pairs as shown in my figure.
My problem is to find the query which can return the total number of pair under particular node any given parent node. day to
day maximum 5 pairs in a day please any one can suggest us
CREATE proc [dbo].[count_pairs]
@ParentID nvarchar(50)
as
begin
Declare @ParentSUM SMALLINT = 0
Declare @SubLeftID nvarchar(50)
Declare @SubRightID nvarchar(50)
SELECT @SubLeftID = CASE WHEN [IsLeft] = 1 THEN [ID] ELSE @SubLeftID END
,@SubRightID = CASE WHEN [IsRight] = 1 THEN [ID] ELSE @SubRightID END
FROM Associate_Income
WHERE ParentID = @ParentID
IF @SubLeftID IS NOT NULL AND @SubRightID IS NOT NULL AND EXISTS(SELECT 1 FROM Associate_Income WHERE [IsLeft] = 1 AND ParentID = @SubLeftID)
BEGIN
SET @ParentSUM = 1
;WITH Associate_Income_CTE AS
SELECT [ID], [ParentID], [IsLeft], [IsRight], 0 AS [Level]
FROM Associate_Income
WHERE [ParentID] = @ParentID
UNION ALL
SELECT RecursiveMember.[ID], RecursiveMember.[ParentID], RecursiveMember.[IsLeft], RecursiveMember.[IsRight], Level + 1
FROM Associate_Income RecursiveMember
INNER JOIN Associate_Income_CTE AnchorMember
ON RecursiveMember.[ParentID] = AnchorMember.[ID]
SELECT @ParentSUM = @ParentSUM + COUNT([ParentID])
FROM
SELECT [ParentID]
,'IsLeft' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsLeft] = 1
AND [ID] <> @ParentID --AND [ID] NOT IN (@SubLeftID, @ParentID)
AND [ParentID] NOT IN (@ParentID, @SubLeftID)
UNION ALL
SELECT [ParentID]
,'IsRight' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsRight] = 1
AND [ParentID] <> @ParentID
) AS Associate_Income
PIVOT
MAX([Value]) FOR [Direction] IN ([IsLeft], [IsRight])
) PVT
WHERE [IsLeft] IS NOT NULL AND [IsRight] IS NOT NULL
END
SELECT @ParentSUM
Jitendra Kumar Sr. Software Developer at Ruvixo Technologies 7895253402I don't think this is homework, I am not sure how helpful it was by Kalman to merge the two threads. It appears that two different persons posted the questions. It could be though, that it is the same problem and Jitendra has taken over Chandra's
task.
However, I was not able to understand the problem nor the figure. And nor the definition of pairs in this context. My assumption is that what Jitendra posted is an abstraction of the actual problem in order to not reveal intellecutal property. Possibly this
makes the problem more difficult to understand for us outsiders.
I've come so far that I worked out a table definition and INSERT statements with sample data, as well as a call to the procedure which returns 3 and this appears to map to the figure, but I don't know what it means. Since I don't know what this
is about, I have not made any attepmts to understand the code, but I would appreciate clarification about the underlying business rules as well as the expected results for various test cases.
CREATE TABLE Associate_Income(ID varchar(30) NOT NULL,
ParentID varchar(30) NULL,
IsLeft tinyint NULL,
IsRight tinyint NULL,
joingdate datetime NOT NULL)
go
INSERT Associate_Income (ID, ParentID, IsLeft, IsRight, joingdate)
SELECT 'Ramesh123', NULL, NULL, NULL, '2014-01-03 16:31:15.000' UNION ALL
SELECT 'Sonu', 'Ramesh123', 1, NULL, '2014-01-03 16:45:21.000' UNION ALL
SELECT 'Pawan kumar', 'Ramesh123', NULL, 1, '2014-01-04 16:50:23.000' UNION ALL
SELECT 'Ravi123', 'Sonu', 1, NULL, '2014-01-04 17:03:22.000' UNION ALL
SELECT 'Vineet123', 'Sonu', NULL, 1, '2014-01-04 17:26:01.000' UNION ALL
SELECT 'dev123', 'Ravi123', 1, NULL, '2014-01-05 19:35:16.000' UNION ALL
SELECT 'Mukesh123', 'Ravi123', NULL, 1, '2014-01-05 19:40:41.000' UNION ALL
SELECT 'poonam123', 'Vineet123', 1, NULL, '2014-01-05 19:49:49.000' UNION ALL
SELECT 'monu', 'Pawan kumar', 1, NULL, '2014-01-05 17:32:58.000' UNION ALL
SELECT 'Arti123', 'Pawan kumar', NULL, 1, '2014-01-05 19:54:35.000'
go
CREATE proc [dbo].[count_pairs]
@ParentID nvarchar(50)
as
begin
Declare @ParentSUM SMALLINT = 0
Declare @SubLeftID nvarchar(50)
Declare @SubRightID nvarchar(50)
SELECT @SubLeftID = CASE WHEN [IsLeft] = 1 THEN [ID] ELSE @SubLeftID END
,@SubRightID = CASE WHEN [IsRight] = 1 THEN [ID] ELSE @SubRightID END
FROM Associate_Income
WHERE ParentID = @ParentID
IF @SubLeftID IS NOT NULL AND @SubRightID IS NOT NULL AND EXISTS(SELECT 1 FROM Associate_Income WHERE [IsLeft] = 1 AND ParentID = @SubLeftID)
BEGIN
SET @ParentSUM = 1
;WITH Associate_Income_CTE AS
SELECT [ID], [ParentID], [IsLeft], [IsRight], 0 AS [Level]
FROM Associate_Income
WHERE [ParentID] = @ParentID
UNION ALL
SELECT RecursiveMember.[ID], RecursiveMember.[ParentID], RecursiveMember.[IsLeft], RecursiveMember.[IsRight], Level + 1
FROM Associate_Income RecursiveMember
INNER JOIN Associate_Income_CTE AnchorMember
ON RecursiveMember.[ParentID] = AnchorMember.[ID]
SELECT @ParentSUM = @ParentSUM + COUNT([ParentID])
FROM
SELECT [ParentID]
,'IsLeft' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsLeft] = 1
AND [ID] <> @ParentID --AND [ID] NOT IN (@SubLeftID, @ParentID)
AND [ParentID] NOT IN (@ParentID, @SubLeftID)
UNION ALL
SELECT [ParentID]
,'IsRight' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsRight] = 1
AND [ParentID] <> @ParentID
) AS Associate_Income
PIVOT
MAX([Value]) FOR [Direction] IN ([IsLeft], [IsRight])
) PVT
WHERE [IsLeft] IS NOT NULL AND [IsRight] IS NOT NULL
END
SELECT @ParentSUM
END
go
EXEC count_pairs 'Ramesh123'
go
DROP PROCEDURE count_pairs
DROP TABLE Associate_Income
Erland Sommarskog, SQL Server MVP, [email protected] -
How to find the list of queries containing a Particular Infoobject
Hi all,
I have requirement to find the list of queries and workbooks which contains a Particular Infoobject. Please advice is there any Database table or Programs exists to find..
Thanks in advance
GAMY..Hi,
Thanks for your replies.
I have tried the oprion already..(RSD1 > Type in the name of the InfoObject and from the menu Edit > choose Where Used list.) but no use. It doesn't show the list of queires..It shows only the data targets.
I would like to know is there any table to achieve the requirement.
Thanks in advance
Ganesh(GAMY) -
How to find the last DML timings on any particular table in oracle 10g?
Hi All,
I need to know in one particular table when the last DML operation happen and what is the dml query ?
Thanks
BalaHi;
Please see:
find last dml operation time on a table
find last dml operation time on a table
Last DML time
find last dml operation time on a table
time of last DML
Regard
Helios -
How to find the list of Keyfigures in a particular Extractor RSA3
Hi,
I have a list of extractors where I need to find out Keyfigures for all the extractors.
do we have any table or program to list the keyfigures for a particular extractor.
That would be really a great helpful.
Thank you in advance.
Regards,
PremHi Prem ,
1. Go to tcode - RSA2.
2 . Give the extractor name in the datasource field and choose display.
3. you can view the keyfigures of the extractor over there .
Regards,
Lokesh -
How to find the number of users connected to database from OS level(Linux)
Hi All,
Could anyone know , how to find the number of users connected to database without connecting with sql*plus
is there any command to find it?
example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
oracle version:- 10g,11g
Operating System:- OEL4/OEL5/AIX/Solaris
any help will be appreciated.
Thanks in advance.
Thank you.
Regards,
Rajesh.Excellent.
Tested, works as long as you set the ORACLE_SID first ( to change databases )
ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
Thanks!
select OSUSER
from V$SESSION
where AUDSID = SYS_CONTEXT('userenv','sessionid')
and rownum=1;Best Regards
mseberg -
How To Find Oracle Home Directory Path...
Hello,
I am working on deployment of java web service on Oracle Application Server(LINUX) 10g, EBS - R12.
I am working on other system and i want to deploy web service remotely on application server.
And i am not getting the oracle home directory path. I want to find the home directory path remotely.
so suggest me how to find out path of that.
or weather i have to install jdevloper on server system and than i have to deploy it,
or any other alternative way is available.
Reply as soon as possible......Thanks for your reply.
It's precisely the registry key which got tampered, and there's no ORACLE_HOME environmental variable(Or that too is tampered)
Now,how to set it to one of the Oracle home directories?
Regards,
Bhagat
!!!!!!!!!!!!!!!!!!!! -
How to find the db accounts using default passwords in oracle 10g
Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
any idea in 10g and 9i ?
thanks in advance.951658 wrote:
Hi, can someone pleas tell me , how to find the oracle accounts in the database which are using default passwords. DB verion is 10g and 9i.
in 11g version we can query the view DBA_USERS_WITH_DEFPWD to view the users....
any idea in 10g and 9i ?
thanks in advance.the only way I've found is to search the web for lists of default users and their passwords, then attempt to log on with said credentials. I'd start with Pete Finnigan's site (google is your friend). He may already have some scripts ready to go, or at least the lists you'd need to get started.
Maybe you are looking for
-
How can i pass a value between tabs
Hi How do i pass values to a particuluar page when that pages tab is clicked on as i need the value to be able to be used for an insert form on the page that it tabs to. You can tab this page from anywhere in the application and i literally just want
-
When I try to import pictures from media card to iPhoto, I'm getting the error 'The following file could not be imported. The file is in an unrecognized format.' The file is a jpeg and I've never had this problem before.
-
"New Message" opens instead of the message received.
Hi, Hope you guys are doing alright! When I receive a new text message and try to open it, I get redirected to the "New Message" box. Hence, I have to press "Cancel" before being able to read the newly received text. How come? And how to I get rid of
-
Hi, We are doing customizing report for variance analysis, because user want the variance report category wise, plant wise periodically before settlement. Can you please tell me what are the tables in which variance stores before settlement, i.e.
-
DB Link working method and security issue.
Hi All, I need some clarification how db link works. If I am having DB link and done some DML operations. After that I have done some DML opearation on the local database. I haven't commited the data yet. Then DB Link goes down. What will happen? In