Cannot access SQL more from other than the Oracle users

Hello

I installed Oracle 11 g R2 on Red Hat 6. My problem is that I can't access sqlplus from other than the oracle users.

I put the PATH, the ORACLE_HOME and ORACLE_SID to the correct values.

Session1

Connect as: oracle

[email protected] password:

Last login: Sun Aug 24 01:24:46 192.168.202.1 2014

[oracle@localhost ~] $ echo $PATH

/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Oracle/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

[oracle@localhost ~] $ echo $ORACLE_HOME

/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

[oracle@localhost ~] $ echo $ORACLE_SID

ORCL

[oracle@localhost ~] $ sqlplus

SQL * more: Production release 11.2.0.1.0 Sun Aug 24 03:17:32 2014

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Enter the user name:

Session2

Connect as: nada

[email protected] password:

Last login: Sun Aug 24 02:31:49 192.168.202.1 2014

[prithwish@localhost ~] $ export PATH=$PATH:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin

[prithwish@localhost ~] $ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1

[prithwish@localhost ~] $ export ORACLE_SID = orcl

[prithwish@localhost ~] $ echo $ORACLE_HOME

/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

[prithwish@localhost ~] $ echo $ORACLE_SID

ORCL

[prithwish@localhost ~] $ echo $PATH

/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Prithwish/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

[prithwish@localhost ~] $ sqlplus

-bash: sqlplus: command not found

I guess that I could not access sqlplus as the Nada the user has no access to X11R6

[prithwish@localhost ~] $ cd...

[Host prithwish@localhost] $ ls - ltr

Total 8

drwx-. 30 oracle oinstall 4096 23 August 23:51 oracle

drwx-. Nada Nada 4096 24 August to 02:33 27 Mathieu

[Host prithwish@localhost] $

My question is, although quite stupid, that double

(1) I have to change the permissions of the directory oracle of 755 for any other user to access the sqlplus?

(2) why is the user directory under the folder created with permissions of 700, even when the umask is set to 002? Change the permissions of the directory under/Home oracle will cause security problems?

My apologies for being naïve. It's the first time I installed Oracle under UNIX

Kind regards

Prithwsh

Actually, the default procedure is NOT to install oracle to X11R6, but in/opt/oracle. or maybe/usr/local/oracle.

This is what you're going to be recommended in the installation documentation, and in doing so, don't forget to run rootpre.sh and root.sh, I never had security problems and could run Oracle from any account.

Sybrand Bakker

Senior Oracle DBA

Tags: Database

Similar Questions

  • ORA-01034 for users other than the oracle

    Hello.

    I'm having a problem trying to connect via SQLPLUS with users that aren't, user oracle t. Instance of database is mounted, open and working fine, the listener is also running. I undersigned, m able to connect without any problem with the user oracle as follows:


    [oracle@LX-TSC2 admin] $ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 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 user of linux, I get errors:


    [metro_ctl@LX-TSC2 ~] $ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 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 user metro_ctl environment variable:

    [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 connect seamlessly with the user metro_ctl if I pointed out that SID to the sqlplus:

    [metro_ctl@LX-TSC2 ~] $ sqlplus metro_ctl/metro_ctl@TSC

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 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 n, t want specified SID since he is already specified in the ORACLE_SID environment variable, I want to open a session by simply using "sqlplus metro_ctl/xxx".

    In case of need, I paste the following text:

    [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)

    (= Extproc PROGRAM)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LX-TSC2)(PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))

    )

    )

    [metro_ctl@LX-TSC2 ~] $ tnsping TSC

    AMT Ping utility for Linux: release 10.2.0.4.0 - Production on 26 October 2013 08:37:56

    Copyright (c) 1997, 2007, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try 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 be appreciated.

    Hello.

    I finally solved my problem. I would like to thank to all the people who tried to help me with my problem. I am now able to use sqlplus without using the SID at the end:

    metro_ctl@LX-TSC2$ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 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<>

    TABLE_NAME TABLE_TYPE

    ------------------------------ -----------

    LIFE

    I resolved to do 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
    
  • What is the difference (other than the device/user limit) feature which would prevent me from installing this new software on Small Business Server 2003 R2 SP2, which 'requires' Windows Server 2003 Std Ed & SQL 2005 Std Ed 32bits. ?

    Need to install new software to the main application. Software provider said Windows Server 2003 STD. Ed. (32 bits) and Microsoft SQL Server 2005 32-bit Standard Edition, Cumulative Update package 8 for SQL Server 2005 SP 2, MDAC 2.8 or later.  We have Microsoft Windows Small Business Server 2003 Standard Edition (SP2 R2).

    Software publisher made a special note that 'Microsoft SQL Server sent as part of Small Business Server is not supported. Please contact us for more information about SQL Server Enterprise Edition. "(contradiction?)

    • Small business, fewer than 10 users.
    • Don't use do not Exchange or IIS part included in SBS 2003.
    • I have access to install SQL 2005 Std install/replace on Small Business SERVER 2003

    Hi copenetadmin5,

    Thank you for visiting Microsoft Answers. SQL Forum, I think, would be the best place where you can discuss much more on the above query. Please visit the link below to find a community that will provide the support you want.

    SQL Server forums

    http://social.msdn.Microsoft.com/forums/en-us/category/SQLServer/

    Nice day.

  • Cannot access my laptop from my desktop PC on the network

    I have a desktop running Windows 7 and a laptop running Vista, and they are both on a wireless network. My laptop can access my desktop, but my office is unable to access my laptop. On the desktop, my laptop is visible, but clicking on it causes the following network error "Windows cannot access \\DR-NOTEBOOK.

    Run the Diagnostics on the dialog box results in the following message: 'file and print sharing resources (DR-NOTEBOOK) is online but does not respond to connection attempts. I have gone through several web sites and support sites, but can't seem to find an answer ot fix the problem. I do not use any third-party firewall, only (on both PC) Windows Firewall.

    In network and sharing on the laptop Center, I have all the elements (i.e. the network discovery, file sharing,...), put into service.

    I would appreciate help from anyone. Thnak.s

    I finally managed to fix the problem. The link above was helpful, but I had already taken care of everything mentioned. The link isn't really remedy the situation where you have a laptop that is connected wirelessly to the network, as is my case. My problem is that the desktop PC could not access files/folders on my laptop, but it worked very well the opposite effect (i.e. the laptop could access files/folders on the desktop. After 'playing well' on the laptop, that's what I did to solve my problem:

    In Center of network & share on the laptop, there is a list with my network connection wireless, with a link "view state".

    Click on this link and you get a dialog box with a button 'properties '. By clicking on this, you get one of several elements that may or may not be selected. In my case, the "file and printer sharing for Microsoft networks" was NOT selected. I chose this and hey presto, it worked.

    Hope that this is useful for someone else with the same problem.

  • He also just on my screen that someone other than the same IP address as me, what should I do to change?

    was informed someone else that my IP address whay I can do

    It also comes on my screen that someone other than the same IP address as me, what should I do to change

    Hi marionnaismith,

    I suggest watching this thread, because it is similar to what you feel:
    Also, here is an article from Microsoft that provides much more detail on this issue, if necessary:
  • Keep other than the folder RES - OBIEE 11 g jpeg files

    Hi all

    I'm trying to keep jpeg files in one path other than the default, because we have millions of files to keep. I found a few forums explaining how to proceed. It is said to change the weblogic.xml file that is available in the

    Step 1:   Navigate to the path of C:\OBIEE11G\Oracle_BI1\bifoundation\jee and analytics.ear open.

    Stpe2:  By opening the ear file, we can see the analytics.war file, open the war file.

    Step 3: now click on the WEB - INF folder and open weblogic.xml file.

    But I couldn't find the weblogic.xml in the path below. I opened analytics.ear and analytics.war using winzip. Can someone help me to satisfy this requirement. Thanking in advance, you and any help will be appreciated.

    This is something that is available on the Web site. I was in need to find the forgotten in the drive weblogic.xml file. In any case, I managed to create a new file weblogic.xml and solve this problem. But my current problem is now I am able to access the files on the way. But I'm unable to access the files from the Folder (Default) RES

  • What are some editing apps good free photo for Mac, other than the Photos of Apple?

    Hi everyone, I'm looking to see what free apps, you guys use for editing photos?  I have a photography class to come and play with options other than the use of pictures of the Apple app.  Nothing against the app, I just learn more.  Thank you.

    Strange question to the users of the forum pictures - of course, the answer is Photos for Mac

    Photos is optional and if you don't like it, then, Google is your friend

    LN

  • I can't get my computer in safe mode. The custom of menu f8 "Let me pick something other than the normal mode. My keyboard works perfectly fine (obviously since I could press f8), but it won't let me choose Safe mode.

    I can't get my computer in safe mode.  The custom of menu f8 "Let me pick something other than the normal mode.  My keyboard works perfectly fine (obviously since I could press f8), but it won't let me choose Safe mode.  I have a Trojan horse on my computer so I'll try to get it in safe mode.

    Hello

    Start - type in the search-> MSCONFIG box find top - make a right click on - RUN AS ADMIN

    Control - Section Boot - Safe Boot Startup tab and check the boxes below if necessary - APPLY / OK - REBOOT.

    ===========================================================

    It can be made repeatedly in Mode safe - F8 tap that you start, however you must also run them
    the Windows when you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs. It comes
    a scan only, VERY EFFICIENT, if it finds something to come back here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Will there be repercussions to Program Files on one partition other than the operating system of the installation?

    Will there be repercussions to Program Files on one partition other than the operating system of the installation?  Most if not all the software packages allow to customize the installation.  I had an experience with OFFICE 2013 and this allowed me to install on a separate partition.  After installation, I checked the menu START was 2013 OFFICE & I was able to launch PwrPt without complications.

    My motivation for doing this is that I have several versions of LabView which occupies the huge disk space.  So if I can separate the backup image of my OS program files is greatly reduced in size.  This allows me to record several images of my OS by dates without needlessly chewing my external hard drive.

    Anyone know this & if yes are there complications or questions?

    Appreciate any feedback

    I think I've found a more informative explanation via:

    http://www.SevenForums.com/general-discussion/221347-install-personal-programs-partition-separate-OS-partition.html

  • Special characters other than the number and the hyphen

    Hi all

    I have a table that has a column named ID. This column contains the employee id, but during the loading of the files in the Tables, some records are contains various special characters. The sould IF contains number and hyphen (-) only. All other characters are special characters.

    I need to write a procedure/function, where I spend that id and check in the table if this ID contains special characters other than the number and the dash and remove it and then check the length of it (say 10).

    It should then resubmit this comment to refer to another ID such as "invalid ID".

    Can someone help me how to write the procedure/function with this feature?
    with t1 as(
    select '12345-2345 ' val from dual
    union
    select '34556- 5627'  from dual
    union
    select ' 56556-5236'  from dual
    union
    select '11111-1111' from dual
    ) select regexp_substr(val,'^[0-9]+-[0-9]+$') FROM t1
    where regexp_substr(val,'^[0-9]+-[0-9]+$') is not null
    
  • The pencil of Apple requires a port light to recharge.  Does anyone know a USB male to female adapter port lighteners that would load the pencil on one device other than the iPad?

    The pencil of Apple requires a port light to recharge.  Does anyone know a USB male to female adapter port lighteners that would load the pencil on one device other than the iPad?

    Apple pencil comes with its own map of woman to woman, so you can use a standard lightning cable USb and charger to charge

    Not sure there is no 3rd party yet.

  • Firefox is redirect to sites other than the one clicked on.

    When you click on search sites by using the bar (address bar not) search, you are redirected to one site other than the one you clicked on. It happens not on all sites found, but on a large number of them. However, in all cases where sometimes the site redirected to is [adlinksearch.com]. I use PC Tools Spyware Doctor and it has found no problems with Malware. I can go on the site if I put the address in the address bar. I use igoogle search bar. Please help with this issue, because it is very annoying.

    This has happened

    Each time Firefox opened

    == Unknown as to exactly when he started

    Firefox closes alltogether when you go to youtube videos, not youtube itself. Redirects to other sites. ran malaware and spybot. Any suggestions?

  • How to better convert 01:56 and not lose quality other than the 4 K to 2 k

    If I take a 4 K produce and convert/low res to 2 k by 2 k, importing in a time line am I lose quality other than the 2 k low res? Is it bad for the film? Does make a difference if the position would give me a 2 k vs file to me? It's a feature and I need lower res that it creates a DCP. so I'm concerned about quality. And is it all still do not lose quality on import and export. It seems that I lose 15GB.

    YYou are reducing the resolution, but you're not really lower the quality. There should be no difference between you do it or someone else do it. The file will be much lower in 2K 4 K. It is to be expected.

  • PXI-8250 in one frame other than the 1042/1045 or PXI-1044?

    The PXI-8250 will work at any level in one frame other than the 1042/1045 or PXI-1044?

    Hi djfrye.

    The PXI-8250 can only be used in the 1042 / q 1042/1045.  It will not work in the PXI-1044.

    Good luck with your application!

  • Windows xp for a Dell c400 install on all the computers other than the particular model?

    Windows xp for a Dell c400 install on all the computers other than the particular model?  For example, a Dell inspiron 2200 or 1100 or bridge or Compac.

    Hi sammytate,

    If you have a Windows XP installation disc, you can install it on all computers, regardless of the brand & model computers.

    However, the product key that comes with the only usable installation disc on a particular computer.

    Hope the helps of information.

Maybe you are looking for

  • Synchronization devices

    I have a MacBook Air, iPad Pro, iPhone 6 and a Apple Watch.  Is it possible to synchronize all together while I have the same on all devices?  If she does not watch which was fine with me but at least 3 others. Thank you Sheryl Heller

  • Location System Board FRU T400

    Hello I SIP kind coffee a bit on my laptop and now it beeps: 1-3-3-1, which means: the DIMM module or system board is complete. I doubt it's the DIMM, so it must be the system board. I began to undo the basket, but it seems a difficult task to find t

  • T430 keyboard

    Hello It is possible to change the no keyboard backlight the backlight one?And the backlight will work?

  • I do a system restore. The screen indicates that a program (python 22) cannot be recovered.

    I have a 60 per cent and have not reached an hour approximately. I do it again? can I turn off the computer with damage. I can by pass this program and load the rest. I have to use the recovery at the end of the recovery disk?  Thank you, John

  • Runnning still 667 Ram @ 333 in N100 - 0768 49

    I just bought a module of ram 667 2GB but my ram is still ongoing at 333 mhz. I deleted the default previous ram 512 MB 333 mhz... In the bios I can't find no overclocking option and the option ram even where I can change or set freq myself... I chec