Os commands, oracle user permissions
I installed the objects as outlined in this Oracle whitepaper:
http://www.oracle.com/technology/tech/java/jsp/pdf/calling_shell_commands_from_plsql_1.1.pdf
This allows me to enter os commands from pl/sql using the java method. Works like a charm, except I can not access a directory our linux admin recently granted to the oracle user.
If I run the groups command from a tty session as user oracle, I get:
$ /usr/bin/groups
oinstall newgrp dba
If I run the same thing from sqlplus I get:
SQL> select os_command.exec_clob('/usr/bin/groups') command from dual ;
COMMAND
oinstall dba
I do not have the 'newgrp' group when I run from the db.
The dba bounced the db but no change. I understand the jvm resides in the db kernel. Bouncing the server is not an option at this point.
user12052260 wrote:
Hi Stevens,
There is very small reason, to reduce the downtime we are planning to install 10g binaries in on week day and weekend we will take downtime only for upgrade.
so that while upgrading we can exclude the installation time.
Thats why we are planning to create new os level user and installing 10g binaries.
So asked for advice and suggestions whether is it a way to approach.
Thank you very much
VamshiUnderstood, but none of that requires a new oracle user/software owner. I have managed AIX boxes hosting 3 separate db's, each with it's own OHome, owned by it's own OS account. I understand the reasoning of the guy who set that up (that I inherited it from), but disagree with it. It created as many problems as it solved. There really is no good reason that I can see to create more than one single OS account to own all of the oracle software installations. Just as there is generally no good reason to have multiple OHome's of the same version. Just as there is no good reason to have multiple listeners on a given host.
Similar Messages
-
-bash: sqlplus: command not found / Oracle file permissons
Hi,
I am running Oracle EE 10.2.0.1.0, on a RHEL 4-U2 server.
When I try to use sqlplus from a non dba account I get the following error:
[pemarten@orclserv ~]$ sqlplus pemarten/mypassword
-bash: sqlplus: command not foundAll my environment variables are set and $ORACLE_HOME/bin has been added to the PATH.
The problem seems to be that the file permissions of the oracle flexible architecture are wrong:
[oracle@orclserv 10.2.0]$ pwd
/u01/app/oracle/product/10.2.0
[oracle@orclserv 10.2.0]$ ls -l
totaal 8
drwx--x--- 56 oracle oinstall 4096 dec 12 14:15 db_1
drwxr-x--- 46 oracle oinstall 4096 dec 12 14:14 htmldbThe permission of the db_1 directory is to strict (should be at least chmod 711 I think)
On my other test server (DB version 10.1) the permissions are:
[oracle@locserv 10.1.0]$ pwd
/u01/app/oracle/product/10.1.0
[oracle@locserv 10.1.0]$ ls -l
total 4
drwxr-xr-x 53 oracle oinstall 4096 Oct 12 02:54 db1So I have tried to chmod the directories to at least 711 up to the sqlplus binary, but when I try to execute sqlplus after that I get the following error:
[pemarten@orclserv ~]$ sqlplus pemarten/mypassword
sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directorySo this doesn't seem to be an option. My biggest concern is why are the file permissons wrong after installation?
Before installing the oracle software umask 022 was added to the .bash_profile of the oracle user (used to install the software)
Has anyone experienced similar problems?
Does anyone knows how to solve this?
Thank You.
PieterIvan,
Thanks for your reply.
I have changed the file permissions of +- 5 files in the lib directory, every time that I changed the permission of 1 file, I got an error for another one.
Now I am getting the following error
[pemarten@orclserv ~]$ sqlplus pemarten/mypassword
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properlyAccording to oerr there are still lib files with wrong permissions...
What I would like to know is :
1) Are the file permissions changed in 10.2 (only DBA's can use sqlplus on the database server) ? If not I probably did something wrong and I will do a reinstall
2) Can anyone who has version 10.2 installed post an ls -l of his $ORACLE_HOME directory please, so I can compare the file permissions ?
Thank You,
Pieter -
Asmcmd permissions issue with oracle user
I installed 11gr2 grid infrastructure according to the recommendation of the installation guide that there would be one OS owner of grid infrastructure (grid user) and another OS ower for the database software (oracle).
As the oracle user I can access and control ASM via sql*plus but I can not use asmcmd. Using asmcmd requires me to switch to the grid user but I want the oracle user to be able to use it for script purposes, etc.
(oracle)$ id
uid=502(oracle) gid=501(oinstall) groups=10(wheel),501(oinstall),502(dba),506(asmdba)
(oracle)$ . oraenv
ORACLE_SID = [+ASM1] ?
The Oracle base for ORACLE_HOME=/u01/app/11.2.0/grid is /u01/app/oracle
(oracle)$ asmcmd
/u01/app/11.2.0/grid/bin/asmcmd: line 122: /u01/app/11.2.0/grid/perl/bin/perl: Permission denied
/u01/app/11.2.0/grid/bin/asmcmd: line 142: /u01/app/11.2.0/grid/perl/bin/perl: Permission denied
/u01/app/11.2.0/grid/bin/asmcmd: line 142: exec: /u01/app/11.2.0/grid/perl/bin/perl: cannot execute: Permission denied
$ dir /u01/app/11.2.0/grid/perl/bin/perl
-rwx------ 1 grid oinstall 1424555 Oct 23 14:55 /u01/app/11.2.0/grid/perl/bin/perl*
So I tried to manually set permissions results in this show stopper.
$ asmcmd
Can't load '/u01/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: libexpat.so.1: cannot open shared object file: No such file or directory at /u01/app/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi/DynaLoader.pm line 203.
at /u01/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 14
Compilation failed in require at /u01/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 14.
BEGIN failed--compilation aborted at /u01/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 18.
Compilation failed in require at /u01/app/11.2.0/grid/lib/asmcmddisk.pm line 119.
BEGIN failed--compilation aborted at /u01/app/11.2.0/grid/lib/asmcmddisk.pm line 119.
Compilation failed in require at /u01/app/11.2.0/grid/bin/asmcmdcore line 166.
-rwxrwx--- 1 grid oinstall 105955 Jul 21 2009 /u01/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so*
-rwxrwx--- 1 grid oinstall 0 Jul 21 2009 /u01/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.bs*
-rwxrwx--- 1 grid oinstall 25002 Jul 21 2009 /u01/app/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi/DynaLoader.pm*
-rwxrwx--- 1 grid oinstall 27103 Jul 21 2009 /u01/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm*
-rw-r--r-- 1 grid oinstall 129421 Jul 1 2009 /u01/app/11.2.0/grid/lib/asmcmddisk.pm
-rw-r--r-- 1 grid oinstall 129421 Jul 1 2009 /u01/app/11.2.0/grid/lib/asmcmddisk.pm
-rwxr-xr-x 1 grid oinstall 29487 Jun 13 2009 /u01/app/11.2.0/grid/bin/asmcmdcore*
So that leaves me with the question... is there a way to get this to work or am I going to have to re-install the Grid Infrastructure under the oracle user?Hi,
I installed 11gr2 grid infrastructure according to the recommendation of the installation guide that there would be one OS owner of grid infrastructure (grid user) and another OS ower for the database software (oracle).When you create a software owner for Oracle grid infrastructure is usually to separate grid infrastructure administrative privileges from Oracle Database administrative privileges.
As the oracle user I can access and control ASM via sql*plus but I can not use asmcmd. Using asmcmd requires me to switch to the grid user but I want the oracle user to be able to use it for script purposes, etc.
(oracle)$ id
uid=502(oracle) gid=501(oinstall) groups=10(wheel),501(oinstall),502(dba),506(asmdba)
(oracle)$ . oraenv
ORACLE_SID = [+ASM1] ?
The Oracle base for ORACLE_HOME=/u01/app/11.2.0/grid is /u01/app/oracle
(oracle)$ asmcmd
So that leaves me with the question... is there a way to get this to work or am I going to have to re-install the Grid Infrastructure under the oracle user?
$ dir /u01/app/11.2.0/grid/perl/bin/perl
-rwx------ 1 grid oinstall 1424555 Oct 23 14:55 /u01/app/11.2.0/grid/perl/bin/perl*I believe you should not set the file permissions, but access the asmcmd whith user grid or reinstall your Grid Infrastrucutre.
Or
Put user oracle on ASMDBA and ASMDMIM and access ASM from $ORACLE_HOME (database) through SQLPLUS.
Regards,
Levi Pereira
<font size="1" color="black">Mark the replies answered "helpful" answer or "correct" answer that will help others with same problem.</font><br>
<font size="1" color="black">Thanks for doing your part to make this community as valuable as possible for everyone!</font><br>
Edited by: Levi Pereira on Jan 12, 2011 5:10 PM -
Problem resetting user permissions- CMD R not working
Hi,
Thanks in advance to those willing to lend some help!
GEAR:
2.53 GZ Core 2 Duo Mini running 10.8.5 All updates done.
I believe I have a current Time Capusle backup at my disposal.
New Macbook Air available to help.
ISSUE:
In the last couple of days I seem to be losing permissions to do things in my user profile which is the admin. Can't dump anything to trash without a password, mail will not open as it doesn't have permission anymore, can't move files around from folder to folder, Excel won't save as it is now read only, Firefox won't open as it thinks there is already an open version...Messages won't sync properly anymore or access address book to bring up peoples names to match the phone numbers... etc..etc.
Research showed the problem is likely user permissions and the cure is resetting. Knowing this has to be done via terminal after a COMMAND R boot into recovery mode I have tried everything to make this happen. No go! Apparently the partition required to boot into recovery never happened during install as the computer insists it is not there. Worse it will not default to internet recovery either. When I hold OPTION and boot I have only the HD visible and no recovery option to choose from.
I have created a 10.8 USB recovery stick (on my mac air) and can boot to that on the mini but there is no terminal option (as far as I can see) to allow me to reset the permissions. I also tried to boot to an old Leopard CD hoping that might work.. nada.
I have done a verify disk and repair disk permissions. All good. The computer works 100% fast and proper if I login under a new user profile so my issue appears not to be hardware related at all.
Given that I can't CMD R into any recovery is there any other way to reset these permissions?
Anyone know what would cause this to happen?
Thanks!!
Dave.In light of the fact there are other things Etre noted as issues I posted the lot. Sorry it's longer but thought I may lead you in the correct direction.
EtreCheck version: 1.9.13 (49)
Report generated 13 August, 2014 11:05:31 PM EDT
Hardware Information: ?
Mac mini (Late 2009) (Verified)
Mac mini - model: Macmini3,1
1 2.53 GHz Intel Core 2 Duo CPU: 2 cores
8 GB RAM
Video Information: ?
NVIDIA GeForce 9400 - VRAM: 256 MB
Acer H233H 1920 x 1080 @ 60 Hz
Acer H233H 1920 x 1080 @ 60 Hz
System Software: ?
OS X 10.8.5 (12F45) - Uptime: 0 days 1:45:51
Disk Information: ?
ST750LX003-1AC154 disk0 : (750.16 GB)
S.M.A.R.T. Status: Verified
disk0s1 (disk0s1) <not mounted>: 209.7 MB
Mac Mini HD (disk0s2) / [Startup]: 749.81 GB (467.41 GB free)
PIONEER DVD-RW DVRTS08
USB Information: ?
LEXAR ImageMate RW022 Reader 15.93 GB
S.M.A.R.T. Status: Verified
disk1s1 (disk1s1) <not mounted>: 209.7 MB
Untitled 1 (disk1s2) /Volumes/Untitled 1: 7.97 GB (7.93 GB free)
Recovery HD (disk1s3) <not mounted>: 650 MB
Apple, Inc. Keyboard Hub
Apple Inc. Apple Keyboard
Apple Computer, Inc. IR Receiver
AKM AK5370
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Gatekeeper: ?
Anywhere
Kernel Extensions: ?
[loaded] com.iospirit.driver.rbiokithelper (1.7.2) Support
Problem System Launch Agents: ?
[failed] com.apple.CalendarAgent.plist
[failed] com.apple.tccd.plist
Launch Daemons: ?
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.bombich.ccc.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[loaded] com.oracle.java.JavaUpdateHelper.plist Support
Launch Agents: ?
[loaded] com.oracle.java.Java-Updater.plist Support
User Launch Agents: ?
[loaded] com.citrixonline.GoToMeeting.G2MUpdate.plist Support
User Login Items: ?
Dropbox
Internet Plug-ins: ?
Flip4Mac WMV Plugin: Version: 3.0.0.126 - SDK 10.8 Support
FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
JavaAppletPlugin: Version: Java 7 Update 65 Check version
Flash Player: Version: 14.0.0.145 - SDK 10.6 Outdated! Update
RogersOneNumber_68286: Version: 1.0.68286 - SDK 10.5 Support
QuickTime Plugin: Version: 7.7.1
SharePointBrowserPlugin: Version: 14.4.1 - SDK 10.6 Support
Silverlight: Version: 5.1.20125.0 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0 - SDK 10.8
Audio Plug-ins: ?
AirPlay: Version: 1.7 - SDK 10.8
iSightAudio: Version: 7.7.1 - SDK 10.8
iTunes Plug-ins: ?
TuneUp Visualizer: Version: (null) Support
Quartz Composer Visualizer: Version: 1.4 - SDK 10.8
User Internet Plug-ins ?
CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 Support
3rd Party Preference Panes: ?
Candelair Support
Flash Player Support
Flip4Mac WMV Support
Java Support
MacFUSE Support
Tuxera NTFS Support
Time Machine: ?
Skip System Files: NO
Mobile backups: OFF
Auto backup: YES
Volumes being backed up:
Mac Mini HD: Disk size: 698.32 GB Disk used: 263.01 GB
Destinations:
Data [Network] (Last used)
Total size: 2
Total number of backups: 162
Oldest backup: 2012-01-06 09:53:34 +0000
Last backup: 2014-08-14 02:24:59 +0000
Size of backup disk: Adequate
Backup size 2 > (Disk used 263.01 GB X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU: ?
51% CalendarAgent
4% WindowServer
4% syslogd
3% Dropbox
1% activitymonitord
Top Processes by Memory: ?
434 MB WebProcess
156 MB PluginProcess
115 MB mds
90 MB ReportCrash
90 MB Finder
Virtual Memory Information: ?
5.08 GB Free RAM
1.76 GB Active RAM
103 MB Inactive RAM
822 MB Wired RAM
561 MB Page-ins
0 B Page-outs -
Oracle user writing to ASM disks owned by grid
Version:11gR2
OS: Solaris, AIX, LINUX
When Grid infrastructure is owned by grid user, the permissions should be like
# chown grid:asmadmin /dev/rdsk/cxtydzs4
# chmod 660 /dev/rdsk/cxtydzs4But, how does oracle user which belongs to dba group manage to write to these disks ?Hi,
If the device names are the same on all nodes, then enter commands similar to the following on all nodes to change the owner, group, and permissions on the character raw device files for the disk devices where grid is the Oracle Grid
Infrastructure installation owner, and asmadmin is the OSASM group
example
# chown grid:asmadmin /dev/rhdiskn
# chmod 660 /dev/rhdiskn
see this link
http://download.oracle.com/docs/cd/E11882_01/install.112/e17210.pdf -
OUI returns "Verify that the partition is owned by Oracle user" message
Hi,
When I'm installing Clusterware 10.2.0.1 I receive the following error on the OCR location screen:
"The specified shared raw partition /dev/ora1/ may not have correct permission. Verify that the partition is owned by Oracle User."
I have used the "chown" command to change the owner and group to oracle:dba but it didn't work, I'm still get the message.
This is my disk:
node1/oracle/ocr_voting1/> ls -la /dev/ora1
crwxrwxrwx 1 oracle dba 2,150 Feb 25 02:15 /dev/ora1
node1/oracle/ocr_voting1/>
As you can see I have set 777 permissions.
What else Can I do ?
Thank youHi,
I'm looking the dd command on oraexperts.com but I haven't founanged it.
I'm installing 10.2..0.1 but we are gonig upgrade to 10.2.0.4 as soon we install CRS
I have the correct permissions on the second node, actually I can create and delete files from both nodes in the same device.
I changed permission for /dev/oracle and the error still happens. I changed the owner and group directly on the hdisk21 and I specify this path: /dev/hdisk21 but it didn't work.
I have 777 permissions for that device, it has oracle owner and dba group but I still have the same error.
My OS is AIX 5.3. ML8
We are using GPFS 3.2
Because CRS needs a raw device to storage the voting disk, How can I know what raw devices are ? How can I be
sure that my hdisk21 is a raw device ? -
TAKEOWN command -- SYSTEM user cannot claim ownership
Hello,
I already tried to ask this question over at microsoft answers, but I was forwarded here. ( https://answers.microsoft.com/en-us/windows/forum/windows8_1-security/takeown-system-user-cannot-claim-ownership/42499b15-6939-4c2b-811c-04449dd2a8b2 )
I've got a question about a matter of principle due to learning, not a particular problem.
When one want to take over ownership of files and directories owned by NT SERVICE\TrustedInstaller, one can very easily use the security tab of the properties. Also TAKEOWN and ICACLS works on an elevated cmd.
However, TAKEOWN does not work for particular situations when you are system user.
Here is my situation:
For learning purposes I want to add (full) permissions to "C:\Program Files\WindowsApps" to my user account with administrator privileges ("VankogSolid\Daniel").
To this folder only TrustedInstaller has full access. While System user has RWX to this sole folder and machine administrators have R-X rights for the whole folder. My own account has no explicit appearance:
(cannot post pictures, therefore do it yourself:)
http://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=3abf52bb-8ef9-46aa-8dcc-07a26d778680
side question:
Even though my user has admin privileges it has no privileges at all for this folder. Accessing it is denied by the system.
Yes, my user is not listed in the permission entries, but shouldn't it be part of "Administrators" and therefore be able to read it?
OK, so to add my account to the permissions list I need to get ownership of the folder first and then set the permissions.
Doing this via GUI and on an elevated cmd via TAKEOWN with ICACLS works on my account.
But now the problem:
Why does TAKEOWN not work as SYSTEM user?
Here is what I mean:
Because I am curious and I think it might be of better security concern (debatable), I wanted to set the owner of the folder to SYSTEM and let SYSTEM set my account permissions.
So I opened a cmd as SYSTEM user while in the context of my windows logon screen and tried TAKEOWN:
c:\Windows\System32>whoami
nt authority\system
c:\Windows\System32>takeown /F "%Programfiles%\WindowsApps"
ERROR: The current logged on user does not have ownership privileges on
the file (or folder) "C:\Program Files\WindowsApps".
Main question:
OK, what's going on here? Why is he unable to claim ownership as SYSTEM? He has RWX, while even administrators only have R-X.
Thx for your explainings!Comments embedded
Hi ,
I’m facing problem with oracle user,
Oracle 10G R(2).Windows Xp
Application in .NET
1)I create user:Please post complete command
>
2)Then I check current session using this select”
"SELECT SID, SERIAL# FROM V$SESSION WHERE UserName =
Please post the complete command.
3)Then I execute this statement from application”
ALTER SYSTEM KILL SESSION '{sid},{serialno}'
IMMEDIATE”
Please post the complete command
4)In our scenario user is no more connected. How did you verify? Please post the complete command.
>
5) Now when we run below this statement from
application oracle gives an error”CANNOT DROP THE
USER THAT IS CURRENTLY CONNECTED” So the user is still connected.
Which user are you trying to drop? Yourself?
Again, please post the complete command.
>
DROP USER {0} CASCADE
Please advice.
Faheem LatifMy advice is you either provide sufficient detail, including all commands, and stop relying on crystal balls and fortunetellers.
No one here was looking over your shoulder, so no one can tell what happened, without you providing sufficient clues. I agree with you this is cumbersome, and doesn't comply with your custom to dump everything here, not doing any research yourself.
Sybrand Bakker
Senior Oracle DBA -
How to add multiple users permissions to a calendar using powershell?
I have an organization that was recently setup in Exchange Online and they have unique circumstances in that every user in the organization needs "reviewer"
access to every other users calendars. I cannot change the default permission since new users added after this should not be able to see these calendars details. There are a few I will go back to run a Set command on to change an individual permission
here and there for specific needs, but the main need is below.
I have basic experience with powershell commands and have found how to manually add a single users permissions to a calendar using the command below:
Add-MailboxFolderPermission -Identity alias:\calendar -user alias -AccessRights reviewer
Since it's not realistic to run this command thousands of times changing the user aliases each time, I was hoping someone could help me build a command to run on a single mailbox's calendar that would add every current user in the organization with certain
permissions such as "reviewer" or "availabilityonly".
Thanks for the help!Hi,
A possible solution is to do this via Security Groups.
Add-MailboxFolderPermission -Identity [email protected]:\Calendar -User [email protected] -AccessRights Owner
This way, you simply add users that require access to the CalendarOwnerAccessGroup
You still have to run this on every mailbox that should have this feature, but that could be solved using powershell piping.
http://technet.microsoft.com/en-us/library/ee176927.aspx
/Anders Eide -
Can not start WLS as oracle user
I am not able to start the WLS (10.3.2) as the oracle user.
I am able to start it as the root user but i don't have root access so i always have to ask our admin to stop and start the server...
What do i need to do to be able to start and stop the WLS with the oracle user?
Their are 2 errors i get... When i started the server as root and i need to restart it and i try it with the oracle user i get this:
<May 27, 2010 12:23:14 PM CEST> <Notice> <Log Management> <BEA-170019> <The server log file /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
Error creating logFile: /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/log/EmbeddedLDAP.log (Permission denied)
<May 27, 2010 12:23:19 PM CEST> <Error> <EmbeddedLDAP> <BEA-000000> <Error opening the Transaction Log: /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.tran (Permission denied)>
<May 27, 2010 12:23:19 PM CEST> <Error> <EmbeddedLDAP> <BEA-000000> <Error Instantiating 'dc=webcenter_domain': null>
<May 27, 2010 12:23:19 PM CEST> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thrown is java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot. This may indicate a problem with the data files for the Embedded LDAP Server. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files exist in /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/backup.>
<May 27, 2010 12:23:19 PM CEST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot
at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:273)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)I can do a chmod for the files so i don't get the permission denied error but than when i try to start the server from my oracle user i get an error which i currently can not get because of the permission denied and no root access...
I know the error says something about bootstrap or something which i thought to be something to do with a password... But when i run the same startup with root user i do not get this error...
So what do i need to do so i can start the WLS without having to login as the root?
Edited by: Yannick.O on 27-May-2010 03:38Hi,
Could you first check if you have read/write/create permissions on the folder:
/oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.tran
If yes could you try deleting the the ldap folder from "yourdomain/servername/ldap" and then restart the server.
regards,
Zeno -
Oracle user can't see all files in a folder. Why?
I've installed oracle 10g (32 bit) in Oracle EL (32 bit). When I attempt to start the database from the oracle user, it throws the following error:
ORA-01078:failure in processing system parameters
LRM-00109:could not open parameter file '/u01/app/oracle/oracle/product/10.2.0/db_1/dbs/initorcl.ora'
As an oracle user I checked the $ORACLE_HOME/dbs and found these two files visible:
initdw.ora & init.ora
But as root user i found the following files existing in the directory:
hc_orcl.dat, initdw.ora, init.ora, lkORCL.ora, orapworcl & spfileorcl.ora
echo $ORACLE_SID returns the value as "orcl".
I followed the possible issues from the following thread:
ORA-01078: failure in processing system parameters
and
http://mohamedazar.com/2010/04/27/ora-01078-failure-in-processing-system-parameters/
but since the files are not visible for the user, but available to the root, what are the possible solutions that I should try for?Hi Alvaro,
I've given full permissions to the user
As oracle user:
[oracle@localhost dbs]$ ls -ltr
total 36
-rwxrwxrwx 1 oracle oinstall 8385 Sep 11 1998 init.ora
-rwxrwxrwx 1 oracle oinstall 12920 May 3 2001 initdw.ora
[oracle@localhost dbs]$
As root user:
[root@localhost dbs]# ls -ltr
total 68
-rwxrwxrwx 1 oracle oinstall 8385 Sep 11 1998 init.ora
-rwxrwxrwx 1 oracle oinstall 12920 May 3 2001 initdw.ora
-rwxrwxrwx 1 oracle oinstall 1544 May 8 19:48 hc_orcl.dat
-rwxrwxrwx 1 oracle oinstall 24 May 8 19:49 lkORCL
-rwxrwxrwx 1 oracle oinstall 1536 May 8 19:52 orapworcl
-rwxrwxrwx 1 oracle oinstall 2560 May 8 20:30 spfileorcl.ora
[root@localhost dbs]# -
Unknown User Permissions - Erase and Install Backup Plan
Hi everyone,
I upgraded from Tiger and therefore have the unknown user permissions problems. I'd like to erase and install my system and am writing to verify the following:
If I copy my data (with the funny permissions) to a Powerbook in Firewire Disk Mode, reinstall Leopard on my new iMac, then copy the data back from the Powerbook in disk target mode, will the permissions be fixed?
Thank you, Tom Bertram.Thomas,
If you are talking about the "unknown" group problem seen in the permissions portion of Get Info, be aware that Apple is in the process of putting out a Knowledge Base article to address this and it may be wise to be patient a little longer.
The user accounts inherited from Tiger belong to a "group" that has a missing piece of information -- a group name that Leopard wants. The installer should have dealt with this but it didn't. Anyway, a couple of simple Terminal commands can fix this for each such account. Once the Group description is proper, there will no longer be any need to change the group membership of your files.
Unfortunately the first couple tries Apple made of describing how to do this appear to be in error. See the following thread:
http://discussions.apple.com/thread.jspa?threadID=1280472&tstart=0
The correct commands should be posted by Apple shortly and then you can resolve this without having to do a whole re-install.
--Bob -
Change of UID for Oracle user - Impact
If change of UID for Oracle user in solaris will affect the database which is already running. Wil it have any impact for the databases?
Guys please advise.
Thnx,
SatheeshMany thanks for the response. We are not changing the UID but there are some errors in the script related to file permissions. So just wanted to know will it have any impact on the database if we change the UID.
-
Oracle user installation issue
I followed the instructions from
http://docs.oracle.com/cd/E16655_01/install.121/e17752/usr_grps.htm#BACGFIFJ
on my Solaris 11.1 VirtualBox box.
Since i used the Solaris 11.1 - Text install, i don't have a graphical interface (no X11)
i created an oracle user, as per the documentation instructions, using the command:
# /usr/sbin/useradd -u 54321 -g oinstall -G dba,oper oracle
The instructions in the following section http://docs.oracle.com/cd/E16655_01/install.121/e17752/usr_grps.htm#BABBHHAD
say i should modify the .bash_profile file (which i assume is in the user's home directory)
The problem is that the oracle user created using the earlier command has no home directory. Actually, after logging in as oracle, i get the following message:
No directory! Logging in with home=/
# grep oracle /etc/passwd
oracle:x:54321:54321::/export/home/oracle:/usr/bin/bash
but /export/home/oracle does not exist.
When i try to mkdir /home/oracle i get:
mkdir: Failed to make directory "/home/oracle"; Operation not applicable
Needless to say, i cannot follow the rest of the Installation guide since user oracle has no home.
I understand that this is mostly a Solaris admin question, but my issue is with the installation guide for not being clear about its assumptions, which is why i posted this here.
Edit:
some more output:
root@solaris:~# ps -alfe | grep auto
0 S root 2293 1 0 40 20 ? 2500 ? 23:53:30 ? 0:00 /usr/lib/autofs/automountd
0 S root 2294 2293 0 40 20 ? 2573 ? 23:53:30 ? 0:00 /usr/lib/autofs/automountd
root@solaris:~# uname
SunOS
root@solaris:~# uname -a
SunOS solaris 5.11 11.1 i86pc i386 i86pc
root@solaris:~# cat /etc/release
Oracle Solaris 11.1 X86
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Assembled 19 September 2012
after some digging, i found that this is a known bug, included in Solaris 11.1's Release notes.
Funny thing, this bug is listed as "Previously Documented Bug, Fixed in Solaris 11.1
7070558 When the automount Service Is Disabled, useradd Creates Users With Inaccessible Home DirectoriesFinally found my answer in another document. Setting Up and Managing User Accounts by Using the CLI - Managing User Accounts and User Environments in Oracle Solaris …
Apparently, with Solaris 11.1 one must use the -d and the -m switches when creating a new local user.
So the correct command to have issued is this:
/usr/sbin/useradd -u 54321 -g oinstall -G dba,oper -d localhost:/export/home/oracle -m oracle
Once the command was issued, the /export/home/oracle directory was created, (due to the -m switch), and because the user's home directory contains the hostname: part, this means that the /etc/auto_home file was updated.
Once i logged in into the oracle account, the /home/oracle directory was created by autofs.
The Oracle 12c documentation concerning the Solaris 11.1 OS should be updated to include the -d and -m switches. -
ORA-12154 as oracle user, whit the root account it works fine
Hello there,
I've a problem with a client installation if I try to connect to the database. I've the following configuration:
1. Database: Running on a Ubuntu Jeos VM, Oracle 11g (Release 11.1.0.6.0 64 bit)
2. Client: Running on a CentOS 5.2 VM, Oracle Client 10g Linux 32bit
I've configured the tnsnames.ora and stored it in the $ORACLE_HOME/network/admin directory. The content of the tnsnames.ora file is the following:
ORCL64=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.12.128)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))
If I try to connect to the database as the oracle user with the following command sqlplus SYS@ORCL64 AS SYSDBA, I'll get the ORA-12154 TNS:could not resolve the connect identifier specified error message. If I try the same as the root user it works fine and I can establish the connection. The same result I've got if I try the command tnsping ORCL64. As the root user the tnsnames adapter can resolve the alias, as the oracle user this is'nt possible and I'll get the error message: TNS-03505: Failed to resolve name. In both he uses the paramter file /u01/app/oracle/network/admin/sqlnet.ora. The content of the sqlnet.ora file is the following:
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT).
Have you any suggestions how can I resolve this problem to get a connection with the oracle user.
Thank you in advance
SvenHello,
thanks for your answers. On the CentOS maschine, where the client is installed, there are no directory's $ORACLE_HOME/bin/oracle and $ORACLE_HOME/bin/lsnrctl. The output from the $ORACLE_HOME/network/admin/*ora is:
-rw-r----- 1 oracle oinstall 171 28. Apr 21:25 /u01/app/oracle/network/admin/sqlnet.ora
wx---- 1 root root 118 5. Mai 11:33 /u01/app/oracle/network/admin/tnsnames.ora
The post-install script $ORACLE_HOME/root.sh I've started.
On the Ubuntu Jeos VM, where the database is installed, the output from the 3 directories are:
ls -l $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle oinstall 188459338 2009-02-23 09:21 /u01/app/oracle/product/11.1.0/db_1/bin/oracle
ls -l $ORACLE_HOME/bin/lsnrctl
-rwxr-x--x 1 oracle oinstall 143599 2009-02-23 09:48 /u01/app/oracle/product/11.1.0/db_1/bin/lsnrctl
ls -l $ORACLE_HOME/network/admin/*ora
-rw-rw-r-- 1 oracle oinstall 542 2009-03-25 19:08 /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
-rw-rw-r-- 1 oracle oinstall 191 2009-02-23 09:57 /u01/app/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora
-rw-rw-r-- 1 oracle oinstall 324 2009-03-25 19:12 /u01/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora
Kind regards
Sven -
Hi,
I created oracle user in solaris . If I switch from root to oracle it's not asking the oracle user password and direcly going to $ prompt
when I type the command who in $ promot its showing root , Why?
$ who am i
root ->here its should be show the oracle username
If i switch the user again i.e su - oracle now its asking password and still shoing root for who am i command
$su - oracle
password:
$ who am i
root
Can any one tell why its behaving like this?
Thanks.Hi This is my .profile for oracle user
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
ORACLE_SID=TYP2
ORACLE_TERM=xterm
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/dt/lib:/usr/ucblib:/usr/local/lib
export LD_LIBRARY_PATH
# Set up the search paths:
PATH=/bin:/usr/bin:/usr/sbin:/opt/bin:/usr/ccs/bin:/opt/local/GNU/bin
PATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$ORACLE_HOME/bin
PATH=$PATH:/usr/local/samba/bin:/usr/ucb:.
export PATH
Maybe you are looking for
-
Help needed for Time Calc Java Script
Hi, I am trying to create a timesheet in PDF and have hit a speed bump. Is there anyone there who could provide me with a script that calculated the difference between 2 times? (Field2 time)-(Feild 1 Time) = Duration.I am desperate and have tried eve
-
i made a mistake. i installed windows using boot camp without os x lion dvd. what should i do? help pls Re: can i install windows for pc on my mac or do i need the windows for mac?
-
Namespace prefix in created DOM document string
Hello world, I am creating a DOM document using the standard JAXP APIs. The document is not parsed from anywhere, just created using the DOM API factory methods. This document is a SOAP message with the SOAP envelope, header and body elements. Now I
-
JSP & Java Script problem.
Hi, A oldPage.jsp page contains select list box with options coming from oracle database, after selecting any one option (eg as 3rd option) a next button is pressed which leads to newPage.jsp with same select box. The problem is as follows When the n
-
Can't sync my iPod Touch with iTunes 9.1
I just wish I had not gone to iTunes 9.1 - anyway back? It crashes plus it won't sync my iPod Touch photos at all - none visible on my iPod Touch. Bad... If anyway to reinstall iTunes 9.0.1 let me know! Best regards, Steve Schulte Monday 5 April 2010