Rename user's in Oracle 8i ???
This is possible ==> rename user's in Oracle 8i ???
You mean, renaming user: SCOTT to user: JOHN.
As far as I know, the answer is NO.
One of way to do the above is:
1. export owner=SCOTT.
2. Create user JOHN like SCOTT. You can set the same password using
ALTER USER JOHN ... etc. values clause.
3. imp fromuser=SCOTT touser=JOHN.
4. delete user SCOTT (making sure no objects belong to scott).
HTH
Srinivasa
Similar Messages
-
Can we rename a column in Oracle 8.1.7.4 version?
Can we rename a column in Oracle 8.1.7.4 version?
Hi,
There is no direct way of doing it but if you have DBA access then try this: (these 2 tables are in SYS user)
SELECT obj#
FROM obj$
WHERE name = 'your table name';
SELECT col#
FROM col$
WHERE obj# = obj# from above query
AND name = 'your column name';
UPDATE col$
SET name = 'new column name'
WHERE obj# = obj# from first query
AND col# = col# from above query;
And this change might not be immediately visible.
So once you are done with above, run the following:
ALTER SYSTEM FLUSH SHARED_POOL;
Then go to the respective user and describe the table and you will see new name. There might be some mistake in the above queries as I could not test it because I don't have ORACLE on my current system.
Hope this helps.
Regards
-Rajeev -
Hi,
Requirement: Get Windows User Name using Oracle Web Forms 6i.
Tools Using: Windows NT, Oracle web forms 6i, Oracle 10g DB.
Description: I am using GetClientInfo JBean from otn.oracle.com, which gets windows user name, IP address and machine name. The demo I got from oracle web site uses Jinitiator version 1.1.7.18. While we are using the latest version Jinitiator 1.3.1.17. Due to this reason, I am unable to use Javakey which comes with older version but doesn't come with newer version, that's why I can't create the new JavaBean Java identity (PJC).
Please advise what to do. All environment variables are set everything is done, this is the only thing bothering me.
I went through the article 202768.1 from metalink, but on step 5, it gives an error keytool error: java.lang.Exception: Input not an X.509 Certificate.
Also, please let me know if there is any other workaround for this requirement.
Thanks & Best Regards,
MoHi,
Thanks for your kind reply. Actually there was a problem in creating a certificate, now it is okay with the same method. Certificate got imported on client and everything is ready.
Now, the problem is when I try to set Bean Area Implementation Class property with oracle.forms.demos.GetClientInfo, it gives an error FRM-13008 Cannot find JavaBean with name 'oracle.forms.demos.GetClientInfo'.
I went through the articles 1072329.6, 196824.1, and set ClassPath and Path variables with proper values. Also, I have copied jar file and signature file in forms60/java folder. I don't see any problems. Please let me know what I am doing wrong. My limitation is that I have to do all this in forms6i.
I searched forums on metalink and found out that someone installed Patch 15, and everything went okay for him. Do you think I should install Patch 15? if YES, how will I do it, I mean should I first uninstall my forms and then install patch15 or install the patch on my forms?
Thanks so much for your help.
Thanks & Best Regards,
Mo -
How to add column dynamically based on user input in oracle?
**how to add column dynamically based on user input in oracle?**
I am generating monthly report based on from_date to to_date below is my requirement sample table
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE | 01-OCT-12 | 02-OCT-12 | 03-OCT-12
100001.............John...........02-OCT-12...............6
100002.............chris...........01-OCT-12...............4
Based on user input, that is, if user need the report from 01-OCT-12 TO 03-OCT-12, i need to add that dates as column in my table, like 01-OCT-12 | 02-OCT-12 | 03-OCT-12....
below is my code
create or replace
procedure MONTHLY_LVE_NEW_REPORT_demo
L_BUSINESS_UNIT IN SSHRMS_LEAVE_REQUEST_TRN.BUSINESS_UNIT%TYPE,
--L_LEAVE_TYPE_CODE IN SSHRMS_LEAVE_REQUEST_TRN.LEAVE_TYPE_CODE%TYPE,
L_DEPARTMENT_CODE IN VARCHAR2,
--L_MONTH IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_FROM_DATE IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_TO_DATE in SSHRMS_LEAVE_REQUEST_TRN.LVE_TO_DATE%type,
MONTHRPT_CURSOR OUT SYS_REFCURSOR
AS
O_MONTHRPT_CURSOR_RPT clob;
v_return_msg clob;
BEGIN
IF (L_BUSINESS_UNIT IS NOT NULL
AND L_FROM_DATE IS NOT NULL
and L_TO_DATE is not null
-- AND L_DEPARTMENT_CODE IS NOT NULL
THEN
OPEN MONTHRPT_CURSOR FOR
select EMPLOYEE_CODE, EMPLOYEE_NAME AS NAME, DEPARTMENT_CODE AS DEPARTMENT,DEPARTMENT_DESC, CREATED_DATE,
NVL(WM_CONCAT(CL_RANGE),'') as CL_TAKEN_DATE,
case when NVL(SUM(CL2),0)<0 then 0 else (NVL(SUM(CL2),0)) end as CL_BALANCE,
from
SELECT DISTINCT a.employee_code,
a.EMPLOYEE_FIRST_NAME || ' ' || a.EMPLOYEE_LAST_NAME as EMPLOYEE_NAME,
a.DEPARTMENT_CODE,
a.DEPARTMENT_DESC,
B.LEAVE_TYPE_CODE,
B.LVE_UNITS_APPLIED,
B.CREATED_DATE as CREATED_DATE,
DECODE(b.leave_type_code,'CL',SSHRMS_LVE_BUSINESSDAY(L_BUSINESS_UNIT,to_char(b.lve_from_date,'mm/dd/yyyy'), to_char(b.lve_to_date,'mm/dd/yyyy'))) CL_RANGE,
DECODE(B.LEAVE_TYPE_CODE,'CL',B.LVE_UNITS_APPLIED)CL1,
b.status
from SSHRMS_EMPLOYEE_DATA a
join
SSHRMS_LEAVE_BALANCE C
on a.EMPLOYEE_CODE = C.EMPLOYEE_CODE
and C.STATUS = 'Y'
left join
SSHRMS_LEAVE_REQUEST_TRN B
on
B.EMPLOYEE_CODE=C.EMPLOYEE_CODE
and c.EMPLOYEE_CODE = b.EMPLOYEE_CODE
and B.LEAVE_TYPE_CODE = C.LEAVE_TYPE_CODE
and B.STATUS in ('A','P','C')
and (B.LVE_FROM_DATE >= TO_DATE(L_FROM_DATE, 'DD/MON/RRRR')
and B.LVE_TO_DATE <= TO_DATE(L_TO_DATE, 'DD/MON/RRRR'))
join
SSHRMS_LEAVE_REQUEST_TRN D
on a.EMPLOYEE_CODE = D.EMPLOYEE_CODE
and D.LEAVE_TYPE_CODE in ('CL')
AND D.LEAVE_TYPE_CODE IS NOT NULL
group by EMPLOYEE_CODE, EMPLOYEE_NAME, DEPARTMENT_CODE, DEPARTMENT_DESC, CREATED_DATE
else
v_return_msg:='Field should not be empty';
end if;
END;
my code actual output
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE
100001....................John............02-OCT-12.................6
100001....................chris...........01-OCT-12.................4
how to add column dynamically based on from_date to to_date?
Thanks and Regards,
Chris Jerome.You cannot add columns dynamically. But you can define a maximum number of numbers and then hide unused columns in your form useing SET_ITEM_PROPERTY(..,VISIBLE, PROPERTY_FALSE);
-
How to import your MS Active Directory users in an Oracle table
Hello,
I first tried to get a Heterogenous Connection to my MS Active Directory to get information on my Active Directory users.
This doesn't work so I used an alternative solution:
How to import your MS Active Directory users in an Oracle table
- a Visual Basic script for export from Active Directory
- a table in my database
- a SQL*Loader Control-file
- a command-file to start the SQL*Loader
Now I can schedule the vsb-script and the command-file to get my information in an Oracle table. This works fine for me.
Just to share my scripts:
I made a Visual Basic script to make an export from my Active Directory to a CSV-file.
'Export_ActiveDir_users.vbs 26-10-2006
'Script to export info from MS Active Directory to a CSV-file
' Accountname, employeeid, Name, Function, Department etc.
' Richard de Boer - Wetterskip Fryslan, the Nethterlands
' samaccountname Logon Name / Account
' employeeid Employee ID
' name name
' displayname Display Name / Full Name
' sn Last Name
' description Description / Function
' department Department / Organisation
' physicaldeliveryofficename Office Location Wetterskip Fryslan
' streetaddress Street Address Harlingerstraatweg 113
' l City / Location Leeuwarden
' mail E-mail adress
' wwwhomepage Web Page Address
' distinguishedName Full unique name with cn, ou's, dc's
'Global variables
Dim oContainer
Dim OutPutFile
Dim FileSystem
'Initialize global variables
Set FileSystem = WScript.CreateObject("Scripting.FileSystemObject")
Set OutPutFile = FileSystem.CreateTextFile("ActiveDir_users.csv", True)
Set oContainer=GetObject("LDAP://OU=WFgebruikers,DC=Wetterskip,DC=Fryslan,DC=Local")
'Enumerate Container
EnumerateUsers oContainer
'Clean up
OutPutFile.Close
Set FileSystem = Nothing
Set oContainer = Nothing
WScript.Echo "Finished"
WScript.Quit(0)
Sub EnumerateUsers(oCont)
Dim oUser
For Each oUser In oCont
Select Case LCase(oUser.Class)
Case "user"
If Not IsEmpty(oUser.distinguishedName) Then
OutPutFile.WriteLine _
oUser.samaccountname & ";" & _
oUser.employeeid & ";" & _
oUser.Get ("name") & ";" & _
oUser.displayname & ";" & _
oUser.sn & ";" & _
oUser.description & ";" & _
oUser.department & ";" & _
oUser.physicaldeliveryofficename & ";" & _
oUser.streetaddress & ";" & _
oUser.l & ";" & _
oUser.mail & ";" & _
oUser.wwwhomepage & ";" & _
oUser.distinguishedName & ";"
End If
Case "organizationalunit", "container"
EnumerateUsers oUser
End Select
Next
End SubThis give's output like this:
rdeboer;2988;Richard de Boer;Richard de Boer;de Boer;Database Administrator;Informatie- en Communicatie Technologie;;Harlingerstraatweg 113;Leeuwarden;[email protected];;CN=Richard de Boer,OU=Informatie- en Communicatie Technologie,OU=Afdelingen,OU=WFGebruikers,DC=wetterskip,DC=fryslan,DC=local;
tbronkhorst;201;Tjitske Bronkhorst;Tjitske Bronkhorst;Bronkhorst;Configuratiebeheerder;Informatie- en Communicatie Technologie;;Harlingerstraatweg 113;Leeuwarden;[email protected];;CN=Tjitske Bronkhorst,OU=Informatie- en Communicatie Technologie,OU=Afdelingen,OU=WFGebruikers,DC=wetterskip,DC=fryslan,DC=local;I made a table in my Oracle database:
CREATE TABLE PG4WF.ACTD_USERS
samaccountname VARCHAR2(64)
, employeeid VARCHAR2(16)
, name VARCHAR2(64)
, displayname VARCHAR2(64)
, sn VARCHAR2(64)
, description VARCHAR2(100)
, department VARCHAR2(64)
, physicaldeliveryofficename VARCHAR2(64)
, streetaddress VARCHAR2(128)
, l VARCHAR2(64)
, mail VARCHAR2(100)
, wwwhomepage VARCHAR2(128)
, distinguishedName VARCHAR2(256)
)I made SQL*Loader Control-file:
LOAD DATA
INFILE 'ActiveDir_users.csv'
BADFILE 'ActiveDir_users.bad'
DISCARDFILE 'ActiveDir_users.dsc'
TRUNCATE
INTO TABLE PG4WF.ACTD_USERS
FIELDS TERMINATED BY ';'
( samaccountname
, employeeid
, name
, displayname
, sn
, description
, department
, physicaldeliveryofficename
, streetaddress
, l
, mail
, wwwhomepage
, distinguishedName
)I made a cmd-file to start SQL*Loader
: Import the Active Directory users in Oracle by SQL*Loader
D:\Oracle\ora92\bin\sqlldr userid=pg4wf/<password>@<database> control=sqlldr_ActiveDir_users.ctl log=sqlldr_ActiveDir_users.logI used this for a good list of active directory fields:
http://www.kouti.com/tables/userattributes.htm
Greetings,
Richard de BoerI have a table with about 50,000 records in my Oracle database and there is a date column which shows the date that each record get inserted to the table, for example 04-Aug-13.
Is there any way that I can find out what time each record has been inserted?
For example: 04-Aug-13 4:20:00 PM. (For my existing records not future ones)
First you need to clarify what you mean by 'the date that each record get inserted'. A row is not permanent and visible to other sessions until it has been COMMITTED and that commit may happen seconds, minutes, hours or even days AFTER a user actually creates the row and puts a date in your 'date column'.
Second - your date column, and ALL date columns, includes a time component. So just query your date column for the time.
The only way that time value will be incorrect is if you did something silly like TRUNC(myDate) when you inserted the value. That would use a time component of 00:00:00 and destroy the actual time. -
Change user's OU with punctuation mark doesn't work by Rename User View
Hi,
I have problem with moving user between OU by Rename User View when punctuation mark in name of OU is used.
I have own WF that assign user to specific OU depending on value of Select component. When value of this component is changed (against previous value) I call Rename View, that assign user to new OU. For OU without punctuation mark Rename View works OK.
After finishing WF with punctuation mark in OU this Error appers:
java.lang.RuntimeException: There is no such object on the server.
But creating new AD account (by role assignment) in OU with punctuation work OK. In select component is rule that replace puctional character in correct form.
Select component:
<Field name='slctOrganizationalUnitUzivatele'>
<Display class='Select' action='true'>
<Property name='title' value='Nastavte organizacni jednotku:'/>
<Property name='allowedValues'>
<block>
<dolist name='zmena'>
<invoke name='listResourceObjects' class='com.waveset.ui.FormUtil'>
<invoke class='com.waveset.session.SessionFactory' name='getServerInternalContext' />
<s>OrganizationalUnit</s>
<s>AD</s>
<null/>
<s>false</s>
</invoke>
<rule name="RUL nahrada znaku">
<argument name="inputString">
<ref>zmena</ref>
</argument>
<argument name='hledanyRetezec'>
<s>\,</s>
</argument>
<argument name='nahrazovaciRetezec'>
<s>\, </s>
</argument>
</rule>
</dolist>
</block>
</Property>
<Property name='sorted'>
<Boolean>true</Boolean>
</Property>
</Display>
<Default>
<upcase>
<ref>user.accounts[AD].ad_container</ref>
</upcase>
</Default>
</Field>
WF-Rename User
<Activity id='10' name='renameUzivatele'>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='type' value='RenameUser'/>
<Argument name='id' value='$(user.waveset.accountId)'/>
<Argument name='authorized' value='true'/>
<Return from='WF_ACTION_ERROR' to='error'/>
<Return from='view' to='renameView'/>
</Action>
<Action id='1'>
<expression>
<block>
<set name='renameView.accounts[AD].identity'>
<ref>newDNrecord</ref>
</set>
<set name='renameView.resourceAccounts.currentResourceAccounts[AD].identity'>
<ref>newDNrecord</ref>
</set>
<set name='renameView.resourceAccounts.currentResourceAccounts[AD].selected'>
<s>true</s>
</set>
<set name='user.global.OrganizationalUnit'>
<ref>slctOrganizationalUnitUzivatele</ref>
</set>
</block>
</expression>
</Action>
<Action id='2' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkinView'/>
<Argument name='view' value='$(renameView)'/>
<Argument name='authorized' value='true'/>
</Action>
<Transition to='nastaveniPristupu-overeni'/>
<WorkflowEditor x='193' y='343'/>
</Activity>
<set name='newDNrecord'>
<concat>
<s>CN=</s>
<ref>user.global.fullname</ref>
<s>,</s>
<ref>slctOrganizationalUnitUzivatele</ref>
</concat>
</set>Do you have any ideas?
Thanks PetrHi,
I discovered following:
- if name of OU in AD is without space (e.g. test,sample) so DN record is test\,sample and user is moved into this OU.
- if name of OU in AD is with space (e.g. test, sample) so DN record is still test\,sample and user isn't moved.
So problem is with empty space. How can I preserve space in DN name? I found something in documentation but I doesn't work for me.
+Special Characters in FieldValues
If you have a field value with a comma (,) or double quote (") character, or you want to preserve leading or trailing spaces, you must embed your field value within a pair of double quotes ("field_value"). You then need to replace double quotes in the field value with two double quote (") characters. For example, "John ""Johnny"" Smith" results in a field value of John "Johnny" Smith. +
(from IDM Business Administrator's Guide, p.77)
Guided this information I put value of slctOrganizationalUnitUzivatele into "". But this didn't work. Is good idea to have space in DN?
Thanks for help.
Petr
Edited by: petrklinkovsky on Sep 10, 2009 5:06 AM -
Problem opening reports with a user in the Oracle Directory.
I have already followed all the steps in the user's guide to run reports with a user in the Oracle Directory.
I accessed the enterprise security manager and created the mandatory xml publisher roles, besides I created another role. I added user A to the new role I created.
I accessed then the administrator tab in XML publisher. I went to roles and the role I created was there. When I tried to add a folder. I'm able to add the folder there. I click on apply and then when I enter in the security Settings again the folder is not there anymore.
I get the following error in the log:
[021207_103218621][][EXCEPTION] oracle.apps.xdo.servlet.resources.ResourceNotFoundException: /opt/oracle/infra2/j2ee/home/xmlpublisher
/Admin/Security/security.xml
When I access xml publisher with the user A, who belongs to the new role I'm working with, I'm not able to see any folder, nor anything else.
Do you have any ideas about what could be going wrong?
Thanks,
JoaquinCan you replay how? I have been facing this problem for nearly 3 months without any solution. Please help me.
Debarati -
Can't access my user profile with the supplied user information from Oracle
I can't access my user account at oracle.com with the supplied user name and password supplied by oracle email.
user = [email protected]I have deleted all cookies and files, can you please give me some feedback asap. I am registered on an Oracle event that I need to be able to unregister but I can't do it since I can't access www.oracle.com.
-
User Peference in Oracle Apps 11i
HI
One of my user has changed his peference to skip OA framework page which list responsibility.(Now directly logiing to forms)
Now he wants to revert it back,can someone help me to resolve this issue.
Due to some security issue I dont wan to assign the user 'Preferences SSWA' responsibility
Can someone please help me
ls there anyway to control user peference as sysadmin
Thanks in advanceDuplicate thread ..
User Peference in Oracle Apps 11i
User Peference in Oracle Apps 11i -
List user tables in oracle 9i database
Hi,
Im new bi to oracle database...,
Will anyone provide me the command to list the user tables in oracle 9i database.??.
im using linux redhat 4.0... and oracle 9i database....
thanks,
vasanth....user12864080 wrote:
Hi,
Im new bi to oracle database...,
Will anyone provide me the command to list the user tables in oracle 9i database.??.
im using linux redhat 4.0... and oracle 9i database....
thanks,
vasanth....
SELECT ... FROM USER_TABLES;=================================================
Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
Go to tahiti.oracle.com.
Drill down to your product and version.
<b><i><u>BOOKMARK THIS LOCATION</u></i></b>
Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
Do the same with the SQL Reference Manual.
Do the same with the Utilities manual.
You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
Then set yourself a plan to dig deeper.
- Read a chapter a day from the Concepts Manual.
- Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them in the Reference Manual.
- Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
- When you have finished reading the Concepts Manual, do it again.
Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
================================= -
Set User preferences in oracle portals database in portal environment
Hi All,
I need to set User preferences in oracle portals database in portal environment.
I need to get some oracle PL/SQL API for the said purpose.
In user preferences I need to save Preference name and preference value.
Can any one have idea?
Regards
Amit Tiwarihttp://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/index.html
and http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwpre_api_name.html
Patrick. -
Any end user guides for Oracle Financials?
Hi,
I am looking for a very simple end user guide for oracle financials with lots os screenshots and process steps... any help will be appreciatedHi,
You could also refer to the documentation.
Applications Releases 11i and 12
http://www.oracle.com/technetwork/documentation/applications-089559.html
Thanks,
Hussein -
Ora-01034 for users other than oracle
Hello.
I am having an issue when trying to connect through SQLPLUS with users that aren,t oracle user. Database instance is mounted, opened and working fine, listener also is up and running. I,m able to login without any issues with oracle user as follow:
[oracle@LX-TSC2 admin]$ sqlplus metro_ctl/metro_ctl
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 26 08:30:44 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.4.0 - Production
SQL>
But if I try with another linux user, I get errors:
[metro_ctl@LX-TSC2 ~]$ sqlplus metro_ctl/metro_ctl
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 26 08:31:58 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
ORACLE_SID, ORACLE_HOME, PATH are already defined as enviroment variable for user metro_ctl:
[metro_ctl@LX-TSC2 ~]$ echo $ORACLE_SID
TSC
[metro_ctl@LX-TSC2 ~]$ echo $ORACLE_HOME
/oracle/product/10.2.0/db_1
[metro_ctl@LX-TSC2 ~]$ echo $PATH
/home/metro_ctl/fuentes/java/classes:/home/metro_ctl/fuentes/java/lib/classes12.zip:/home/metro_ctl/fuentes/java/bcprov-jdk14-128.jar:/usr/java/j2sdk1.4.1_01:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/metro_ctl/bin:.:/oracle/product/10.2.0/db_1:/oracle/product/10.2.0/db_1/bin:/oracle/product/10.2.0/db_1/lib:/home/metro_ctl/pipe:/home/metro_ctl/bin
I am able to login without problems with user metro_ctl if I specified that SID at the sqlplus :
[metro_ctl@LX-TSC2 ~]$ sqlplus metro_ctl/metro_ctl@TSC
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 26 08:34:42 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.4.0 - Production
SQL>
But I don,t want to specified the SID since it is already specified in the enviroment variable ORACLE_SID, I want to login just using 'sqlplus metro_ctl/xxx'
In case needed, I paste the following:
[oracle@LX-TSC2 admin]$ ps -ef|grep pmo
oracle 24463 1 0 06:32 ? 00:00:00 ora_pmon_TSC
[oracle@LX-TSC2 admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
TSC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LX-TSC2)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TSC)
[oracle@LX-TSC2 admin]$ cat listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = TSC)
(ORACLE_HOME = /oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = LX-TSC2)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
[metro_ctl@LX-TSC2 ~]$ tnsping TSC
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 26-OCT-2013 08:37:56
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = LX-TSC2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TSC)))
OK (0 msec)
Any help will be appreciate.Hello.
I finally did solved my problem . I want to thank to all the people who tried to help me with my issue. I am now able to use sqlplus without using SID at the end:
metro_ctl@LX-TSC2$ sqlplus metro_ctl/metro_ctl
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 26 13:41:51 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.4.0 - Production
SQL> select * from cat where rownum < 7;
TABLE_NAME TABLE_TYPE
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I solved it doing the following steps:
1)Log on as root and change permission.
bash-3.00$ su Password:
# umask 022
# cd $ORACLE_HOME
# chmod 755 *
# cd $ORACLE_BASE/admin/$ORACLE_SID
# chmod 755 *
# cd $ORACLE_HOME/bin
# chmod 6751 oracle
# exit -
Need User Documentation for Oracle Calendar 9.04
I Need User Documentation for Oracle Calendar 9.04 (which replaced Steltor Corporate Time product). I've searched all over this site and can only find server administration documentation.
I see lots of requests from other users for this documentation and no satisfactory answer. Could someone please provide proper documentation for this software?
Thank you.
HelenHi,
You can refer to the Oracle Calendar Resource Kit found here:
http://download-west.oracle.com/docs/html/B10894_01/mainpage.htm#1005552
Thanks,
Lily -
Auditing user activity in Oracle 9i
I need to provide some kind of measure of user activity in our Oracle DB.
Essentially we are trying to find low consumers who perhaps have little or no need for access to the database, perhaps they do one enquiry a day or only access information once a week.
However, if they log in every day, all day, it doesn't necessary mean they are a havy user of the database, they may never actually query or update anything.
With that in mind, is it possible to provide activity auditing in Oracle 9i, with new or existing procedures?
For one application our users share an Oracle account but their OS User would always identify them.
So ultimately I would like to report:
For last week Oracle DB usage of database XYZ is:
User Os User Consumption
ADAM Adam 1000
GSPAM SpamG 900
SLACKA ASlack 877
PINT ASlack 876
PINT Adam 854
I have no idea one might measure consumption!
Thankscubittm, I have done what you are asking about.
Depending on how much detail you want you can set up database event logon and logoff triggers to capture this information.
On logoff you update a statistics row with the values from v$sesstat for the logging off session for those statistics you want to measure. Note, you will not be able to capture statistics for session that abnormally terminate since the logoff trigger does not fire in that case.
All you actually need is a logoff trigger and one row per user to get totals. If you want details then you need one row per day or a set of rows for every logon/logoff depending on how much detail you want to collect.
If you generate data for every logon/logoff the data quantity can build up very fast depending on your application user load. If the target table fills then no one can logon so make sure you have adequate space available and a purge process. This process will not work very well if everyone logs in via a single application id and connection pooling is in use.
HTH -- Mark D Powell --
Maybe you are looking for
-
Hey, Has anyone found a way to add further restrictions to users logged in to the Admin Console based on membership to a Group? Restricting them to specific Menu Items is taken care of, but I'd like to be able to prevent them from editing anything in
-
Upgrade 250Gb HHD to 500Gb results in pinwheel on everything I try to do.
I have a 2009 MacBook Pro, 2.53 GHz Intel Core 2 Duo, 8GB 1067 MHz DDR3. Original HHD is 250GB. I used SuperDuper! to make a copy of the original 250GB to a WD 500GB. When I install the 500GB in the MacBook Pro connected to the SATA controller, I get
-
Missing Selection in Lightroom 3.2, Metadata
In the local Lightroom 3.2 Documentation it indicates that the options for the Library, Metadata, Options include … Home / Using Photoshop Lightroom 3 / Organizing photos in the catalog / Viewing and editing metadata View photo metadata In the Librar
-
Palletization data in material document
Hi, While doing GR for a material, in the WM tab the pallet details ( Dspl, Qty per SU) are not getting updated. In material master in WM tab, palletization data is entered. Is there any SPRO settings, pls suggest. regards NBanu
-
New iPod is recognized; now old iPod isn't!
My new 5th generation 30GB iPod was plugged in yesterday after first updating iTunes with the most recent edition (i.e. from online). However, our older 4th generation iPod is no longer recognized, though it worked previous to the iTunes update and a