All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

Script launched in until OS user 'A' on the 'A' server which launches sqlplus, then connects to a remote database through a service of tnsnames.ora as another user of the database and the results of this script are spoulées on the server "A".

The file queued on the old server is written with rw-rw-r: read write user, group read the writing, reading and possession header that is the user of the OS. The file queued on the new server is written to rw-r-r user: reading writing, reading group, public reading and ownership oracle: dba.

"" The user then has no privileges to modify the file and continue the process of transmitting the file, editing and deleting the file for the next set of commands. This allows us to keep the possibility to migrate to the new server we are unable to process orders.

$ORACLE_HOME/bin/sqlplus - s user/password@prd1 @./script/CustomScript/R12_OM_UFPC-oracle.sql

Background: old server running 4.8, Oracle 10.2.0.4 OEL

New server running OEL 6.5, Oracle 11.2.0.4

Tested so far:

File and update umask to 0002 instead of 0022 is now generated as rw-r-r. However, the property is still oracle: dba.

Update of ownershipt of $ORACLE_HOME/bin/oracle.exe of oracle: oracle (edi added the user to the oracle group) and chmod 6751 oracle.exe. This created several problems where crucial scripts, that is to say of sqlplus failed to run.

Added! chmod 755 output.file.name - OS user 'A' is not allowed to change to mod.

Added! command cp MV output file and that generated the file as a user of the operating system: oracle. It is a potential work around in case of emergency, but the developer would have to rewrite the countless scripts.

Any ideas?

I have reproduced the behavior of the old server and am able to spool a file via sqlplus under OS user. No changes have been made on the remote database server. All the changes have been on the new server hosting a small 11.2.0.4 database on a server running OEL 6.5 32 - bit OS.

(1) removed the sticky bit $ORACLE_HOME/bin/sqlplus using chmod u-s, g-s, o - s suggestion of Billy ~ Verreynne

(2) modified the main group for the 'oracle' user match the user operating system applications, while maintaining membership in the groups 'oracle' and 'dba '.

-We are dealing with here EDI processes, so the Group was called edi.

(3) modified property of the files tnsnames.ora and listener.ora for oracle: edi

(4) restart the receiver

(5) disconnect / reconnect

Script runs as expected, the output file contains the correct ownership and permissions.

Thank you all for taking a look and offering options.

-Josh

Tags: Database

Similar Questions

  • Failed to open all files with the extension .exe in Vista Business SP2. Dialog box appears and asks which program to use. Seems to have lost the info file assoc after virus removal.

    Failed to open all files with the extension .exe in Vista Business SP2.  Dialog box appears and asks which program to use.  Seems to have lost the info file assoc after virus removal.  Any suggestions?

    Hello

    Try the methods provided below and check if the problem persists.

    Method 1:

    Try the fix it or follow the manual for troubleshooting to solve the problem.

    When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program

    http://support.Microsoft.com/kb/950505

    Note:

    The link above contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    http://support.Microsoft.com/kb/322756

    Method 2:

    Download and run Microsoft Safety Scanner and check if the problem is caused by a Virus/Malware.

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • When I do a file search he finds all files with the same keyword, I'm on windows 7

    File search only returns a file name in the search when there are several files whit the same keyword as I entered, this just started to happen.  When I typed a keyword in search it returned previously all files with the same keyword, now it returns only one of the files?

    Thanks for your suggestion, I'll give it a try and get back to you.

    I agree about the garbage, I got several questions on my HP Desktop & Windows 7.  My system crashed once, he took over at Best Buy, they told me my operating system has been altered, but could not tell me how to reload my OS unless I paid them $ 125 for the info.  In any case, I took my corrupted HP back at home plugged and it started as nothing is never past, sickening!

  • How to pass a procedure argument to the script from sqlplus and run

    I would like to pass a procedure as a parameter to a file of sqlplus and run the procedure.

    The file sqlplus, test.sql, looks like:
    set serveroutput on
    set verify off
    set feedback off
    set echo off
    
    spool output.txt
    begin
      dbms_output.put_line('Start~&1'||'~'||user);
      &1;
      dbms_output.put_line('END~&1');
    end;
    /
    spool off
    A simple procedure:
    create or replace procedure proc1( p_arg in varchar2 default 'n' )
    as
    begin
      if nvl(p_arg,'n') = 'n' then
        dbms_output.put_line('Success');
      else
        dbms_output.put_line('Failed'); 
      end if;
    end proc1;
    /
    In sqlplus:
    SQL> @test.sql proc1  --This works
    SQL> @test.sql proc('x')  --This doesn't work
    SQL> @test.sql proc(''x'') --This also doesn't work
    I should be grateful if you would help or alternatives.

    Hello

    If & 1 is:

    proc ('x')
    

    then

    dbms_output.put_line('Start~&1'||'~'||user);
    

    will be passed to the compiler as

    dbms_output.put_line('Start~proc ('x')'||'~'||user);
    

    where the quote before x is interpreted as closing the quote before you begin

    It is an ideal opportunity to use Q-rating:

    dbms_output.put_line ( Q'[Start~&1~]' || user);
    

    Otherwise, use REPLACE to double apostrophes in & 1 before using it in the context of a literal string:

    dbms_output.put_line ( REPLACE ( 'Start~&1~'||user
                                   , ''''
                          , ''''''
                          )
                     );
    
  • Foglight initialize a command on the PC and run a script that makes a sound or a banner on hold the workstation?

    How can we get foglight to invoke a command on the pc and run a script that makes a noise or a banner on my computer

    http://en.community.Dell.com/TechCenter/performance-monitoring/Foglight-administrators/f/4788/t/19552156#14120

    The question really selectively running a sound in a JavaScript browser session, do not turn something local on the user's PC.  The Sonic equivalent of an animated GIF as an analogy.

    The most difficult part, in Java, play a sound through various types and versions of browser without opening a 'player '.  This has been an incredibly difficult task by Oracle, on behalf of the whole being.  If you really want to dive into it, here are some links:

    http://docs.Oracle.com/javase/7/docs/TechNotes/guides/sound/programmer_guide/contents.html

    One approach that seems to have some promise for very small sound files is:

    http://stephengware.com/projects/soundtoclass/

    I got no time to mess around with it yet.

    This seems to have some promise, but still once, have not figured out how to operate:

    import java.awt.Toolkit

    Toolkit.getDefaultToolkit () .beep)

  • CC of the organization saves all files with the icon to the?

    Hi, since a few weeks, I have the following problem: when I save a project in the Organization of the CP, the file still gets .prproj extension but with the icon of the hearing (AU), not creating icon (Pr). problem is that when I fix this kind of files to an email (or send it via us transfer), the other can not open it. It ' has a new number, before it was working OK. anyone understand what is happening? Thank you.

    the icon showing the Audition even if it's a .prproj file may be a separate issue from the other person is not able to open it.  both computers use the same premiere pro version? If it is a simple installation you can try export xml as a work-around.

    If you are on windows, and there is a problem with the file types associations, then right-click on the file and choose 'Open with'. then tell him to always use first pro for .prproj

    If you do not see open with, try now shift while clicking on the file.  This will only change the icons and behavior by double clicking on a file to open it on your computer. He can't fix anything for the other person to open your file.

  • Batch file to open all files in a folder, one by one and run a script.

    I'm looking for a batch file, to run a script on each file file in the folder and open all files in a folder in the path defined and close the file. How is it possible

    Anthony,

    I would have you post here for assistance more.

    http://social.technet.Microsoft.com/forums/en-us/home?category=windowsxpitpro

    We know if that helps.

  • my laptop starts ok and runs OK for about 20 minutes. Then I lose the picture and the screen shows multicolored lines after the screen turns off. Have no option but turn off...

    I have no choice, but to turn off when I next starts, the system works for 15/20 minutes and then the problem comes back I'm back able to boot and run for 15-20 minutes before the problem. What can be wrong?

    Hello

    It's graphic (corrupted graphics drivers or graphics hardware fault), or an overheatring problem.

    1. go to the website of your computer manufacturer > drivers download Section > then key in your computer model number > find your operating system > find two graphics / video or the drivers of the Chipset and download and install.

    If the problem does not have the graphic material.

    2. overheating (normally will stop completely):

    The vents of your laptop becomes clogged with dust, fur, hair, etc.

    You can buy cans of compressed air to clean.

    If that complies, you may consider a repair shop in order to open the laptop and clean the inside of it.

    Also do not use a laptop when it is based on blankets, bedspreads.

    As you can see there may be two reasons for your problem

    See you soon.

  • Move all files with the file hard, in two data warehouses

    You can move these files from the data through VC or WinSCP3 store? You have on the eve of vm? There is that one disc and files are on two separate data stores.

    Please move configuration files to the same data as the vmdk files store to ensure an appropriate server recovery. I ran a backup because it is now, but in this State, I can't assure you that I will be able to recover properly. ProdVMLUN1A3/CO01 (configuration files) ProdVMLUN4A22/CO01 (vmdk files)

    Thank you

    D

    If you're on ESX 3.0, you can do a few things.  We could be to stop the virtual machine in question, and then choose migrate.  In the wizard you will be asked if you want to 'keep' or 'move', choose move.  Another way would be to use VMware Converter

    If you ran 2.5 and ESX 3.5 vCenter, you could do it live with sVmotion.

  • Windows 7 won't allow Administrator move or delete a file with unknown owner.

    I have recently restored some files from an Acronis True Image backup file.  The image came from an old PC that is running Windows XP, and so I just grabbed the file and placed in a different location.  Now, I can't move or delete files. (Windows twlls me I need administrator permission, I.)  When I check the property of one of these files, Windows tells me that it is "Unable to display current owner", and it does not give me the ability to change the permissions.

    It seems that as the owner is unknown, Windows will not let anyone, even the administrator, operated on the file.

    Any suggestions?

    Thank you. -Mark

    Tonight, I found a link on a previous post, I can check, but I re-installed Windows 7 more than once since my original entry about this and I have not known any insubordination for quite awhile. My last reply was to convey this, but apparently there is no. This happens a few times. I keep an ownership context menu function and did not invoke subinacl for quite awhile, but I have it in hand, just in case. I think that I can call my problem is solved. Norton 360 has helped me keep my system work. In my last post I had not tried. I keep UAC disabled for life and the philosophy of Microsoft notwithstanding, that prevents a lot of irritation and does no harm.

    I consider it Detective Conan. Thank you for taking an interest. Microsoft Answers is still one of my main utilities for troubleshooting because often, it works for me.
    Dave Binko
  • help someone alive... working on a portraint geometric, cannot access the level 4 and no tool works there it shows pen with cross... its urgent version * M USING cs6...: (*)

    hhelp,

    Select the entire live paint object and change the weight of the race to zero.

  • You want to move install Bootcamp or VM VMWare on the external drive and run it from there.

    I have two versions of Windows 7 on my iMac 24 "4 GB. One is a Bootcamp of Win 7 Professional installation.  One is a computer virtual from Windows 7 in VMWare Mac OSX. The two windows installs work well (the Bootcamp we're NOT accessible through VMWare right now).

    I want to do is get AN installation running on a partition on the external drive I connected. I have 3 partitions on a disk of T 1.  A 500 GB for Time Machine and 2 250 GB, Mac OSX and a Fat32.

    What I wish really is a straight Win BOOTABLE install on Fat 32 partitions, but will sag to move the VMWare installation to the outside OSX partition.

    Are there ways to do?  I thought Winclone, but as it is in oblivion I don't know about use.

    Any ideas?

    With the Virtual Machine shutdown, not suspended and VMware Fusion closed copy the target Virtual Machine hard disk external package and double-click it to launch the first time and it will fill an entry on the Virtual Machine library.

    The extent of the running Windows natively on a disk external Windows is not capable of it in itself although there may be some ways according to the type of external hard drive and various Boot Loader/managers that are out there.

  • Remove the read-only attribute from all files in a folder

    How to remove the read-only attribute from all files in a folder. I tried to use the properties and used the attrib command, but all I see is when I right click on the folder, selecting Properties, it shows once again

    I followed the forums, but I'm really confused. Can someone help me with this. Thanks in advance

    I would like to start by finding which file is read-only again. This is probably a file as well as a miniature file desktop.ini.  An easy way to find it is to go to the details view, turn on the column heading "Attributes" and search for all files with the attribute value "R":

    In this example, the key of SB file is read-only:

  • Add a folder of files with the hierarchy to the installer

    Hi all

    Have a folder of files that can be read by the app.  This folder has a hierarchy of other records and contains xml files.

    I just want to include this file and all files with the hierarchy with installer and add to the Application directory.

    I don't want to have to manually create this folder hierarchy in generator installation and add each xml file.

    Is it possible to simply add files with the hierarchy folder the installer?

    Thank you.

    You should be able to do this if you add the folder of your project as a folder automatic settlement. If you right click on my computer in the directory of your project and select Add > folder (automatic settlement) will include the folder and subfolders. Now when you go to build an installer and click on the Source Files tab you can add all of the folder and its subfolders. Note, you are not able to do it with normal files or instant capture. I hope this helps.

  • How to block the registration of files with a windows xp-specific extension

    How to block the registration of files in windows xp with a specific extension, example the user cannot save a file with the extension exe or mp3 or another, as management on the filtering of files, windows 2003 server, I can't find the steps for the blocking process I mean in windows xp prof

    Windows cannot do natively.  A file name is simply a file name and you can not prevent the registration of a file based on its extension.

    You can change file associations, such as a double click on a file with a particular extension will not automatically launch an application given, however, but that's not what you asked.
    You may also schedule a program to run from time to time which will erase all files with a given as well.  but until this program is executed, such a file might exist on your disk.

    HTH,
    JW

Maybe you are looking for