I want a user to use only import, it run with export but not import

Hi,
i create a user for use only for import and for export.
batch_export with exp_full_database role <- It run
batch_import with imp_full_database role <- don't run
P:\>sqlplus batch_export/batch
SQL*Plus: Release 10.1.0.2.0 - Production on Lun. Ao¹t 21 17:21:58 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
ERROR:
ORA-00604: une erreur s'est produite au niveau SQL rÚcursif 1
ORA-20000: Connexion refusee
ORA-06512: Ó ligne 41
Entrez le nom utilisateur :
P:\>sqlplus batch_import/batch@rfsage
SQL*Plus: Release 10.1.0.2.0 - Production on Lun. Ao¹t 21 17:03:36 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
ConnectÚ Ó :
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
the trigger as run
create or replace trigger batch_export.check_connexion after logon on database
declare
V_MODULE SYS.V_$SESSION.module%TYPE;
V_TERMINAL SYS.V_$SESSION.terminal%TYPE;
V_SID SYS.V_$SESSION.SID%TYPE;
V_SERIAL SYS.V_$SESSION.SERIAL#%TYPE;
V_COMMAND varchar2(100);
V_CURRENT_USER varchar2(20);
V_CURRENT_SID SYS.V_$SESSION.SID%TYPE;
cursor connexion is
select substr(module,1,7) module, substr(terminal,1,12) terminal, sid, serial# from v$session T1 where schemaname='BATCH_EXPORT';
cursor ID_CUR is
select user from dual;
cursor SID_CUR is
select SYS_CONTEXT('USERENV','SID') sessionid from dual;
--select SYS_CONTEXT('USERENV','CURRENT_USERID') current_userid from dual;
Begin
open SID_CUR;
loop
fetch SID_CUR into V_CURRENT_SID ;
EXIT WHEN SID_CUR%NOTFOUND;
dbms_output.put_line('V_CURRENT_SID:'||V_CURRENT_SID);
end loop;
close SID_CUR;
open ID_CUR;
loop
     fetch ID_CUR into V_CURRENT_USER ;
     EXIT WHEN ID_CUR%NOTFOUND;
     if V_CURRENT_USER='BATCH_EXPORT' then
     open connexion;
     loop
          fetch connexion into V_MODULE,V_TERMINAL,V_SID,V_SERIAL ;
          EXIT WHEN connexion%NOTFOUND;
          if V_MODULE<>'EXP.EXE' then
          dbms_output.put_line('V_SID:'||V_SID);
          dbms_output.put_line('V_CURRENT_USER:'||V_CURRENT_USER);
               if V_CURRENT_SID=V_SID then
               dbms_output.put_line('MODULE:'||V_MODULE);
               RAISE_APPLICATION_ERROR (-20000,'Connexion refusee');
               end if;
          end if;
     end loop;
     close connexion;
     end if;
end loop;
close ID_CUR;
End;
as the same for import user.
I try with role in trigger but it don't, i see this in forum Oracle.
But i think EXP_FULL_DATABASE have not DBA rule, but IMP_FULL_DATABASE have.
How i do this ?
I want just to use a user to imp utilities, but not connexion in sqlplus.
Thanks for your help
Christophe

thanks for your help.
it run !
for example :
as the system user
SQL> INSERT INTO PRODUCT_USER_PROFILE values ('SQL*Plus', 'BATCH', 'CONNECT',null,null, 'DISABLED', NULL, NULL);
1 ligne créée.
SQL> grant create session to batch;
Autorisation de privilèges (GRANT) acceptée.
SQL> INSERT INTO PRODUCT_USER_PROFILE values ('SQL*Plus', 'BATCH', 'SELECT',null,null, 'DISABLED', NULL, NULL);
1 ligne créée.
the result
oracle@debian:~$ sqlplus batch/batch;
SQL*Plus: Release 10.2.0.1.0 - Production on Mar. Août 22 06:53:00 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connecté à :
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select user from dual;
SP2-0544: Commande "select" désactivée dans le profil utilisateur du produit
SQL>
oracle@debian:~$ exp batch/batch owner=batch file=test.dump
Export: Release 10.2.0.1.0 - Production on Mar. Août 22 06:54:32 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connecté à : Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export fait dans le jeu de car WE8DEC et jeu de car NCHAR AL16UTF16
le serveur utilise le jeu de caractères WE8ISO8859P1 (conversion possible)
Prêt à exporter les utilisateurs spécifiés ...
. export des actions et objets procéduraux de pré-schéma
. export des noms de bibliothèque de fonctions étrangères pour l'utilisateur BATCH
. export des synonymes de type PUBLIC
. export des synonymes de type PRIVATE
Thanks for all

Similar Messages

  • IMessage only can send text with photo but not text only

    How come my iMessage can only sent text with photo but not text only. While entered text the send button is blue and gray.the button could become blue and white when only photo was being inserted. My iPad 2 iOS version 5.0.1.

    Went apple store today, everything is fine. Out of the store I have the same problem as disrobed above. Can anyone help?

  • Can anyone tell me why games are semi transparent in Pogo? I only have this problem with Firefox but not with IE9 or Chrome

    When I click on a game, the game window opens and is solid, but when it's fully loaded, it becomes semi transparent and washed out. I can post a screen shot of what I'm talking about if this forum supports it.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Restrict regular users to use only certain ldm command options

    I would like to restrict regular users to use only certain ldm command options, for example only list, bind/unbind, stop/start
    What is the best practice to do it?
    Thanks

    Solution provided by one of my colleagues:
    Installing sudo and configure sudoers file "User privilege specification" section similar to the following example:
    # User privilege specification
    root ALL=(ALL) ALL
    user1 host1 = /opt/SUNWldm/bin/ldm ls *
    user1 host1 = /opt/SUNWldm/bin/ldm stop *
    user1 host1 = /opt/SUNWldm/bin/ldm stop -f *
    user1 host1 = /opt/SUNWldm/bin/ldm start *
    user1 host1 = /opt/SUNWldm/bin/ldm bind *
    user1 host1 = /opt/SUNWldm/bin/ldm unbind *
    **Note*: asterisk should be at the end of each row. They are not displayed in the posted message...*

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • Why can't I save text I've entered into a PDF file?  When I hit "Save As", only the PDF document is saved, but not the text i typed into the document.  I'm using Windows 8.

    Why can't I save text I've entered into a PDF file?  When I hit "Save As", only the PDF document is saved, but not the text i typed into the document.  I'm using Windows 8.

    THANK YOU!
    Jan Whitfield
    The College Planning Center
    250 Palladio Parkway, Suite 1311
    Folsom, CA 95630
    (916) 985-0453
    www.TheCollegePlanningCenter.com

  • Released but not imported tp orders

    Hi Experts!
    Is there a away to list released (approved in D/Q environment) but not imported transport orders ?
    I read all posts regarding FM's around tms, but couldnt find a away to get that orders !
    Thanks in advance,
    Pedro

    Hi,
    If you want Transport Requests, then,
    Check tables, E070, E07T, E070A.
    Use func modile: 'STRF_READ_COFILE' to get the log for the transports.
    If you are talking abt transport orders, then you need to still explore.
    Regards,
    Subramanian

  • Import is not available all other actions are active but not import help?

    Import is not available all other actions are active but not import help? I wish to import bookmarks from internet explorer, I am using windows 7

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

  • LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are

    LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are only accessible as long as the thumb drive is inserted.

    Sounds like you may need to repair the Disk Permissions on your drive where your images are stored.

  • We would like an request with error is not imported over and over again.

    We have an periodically sheduled job which imports all released requests(queue). We would like that request with error is not imported over and over again.
    How to achieve that?

    Hi,
    Please do run the import job for transport in STMS only as described in SAP Note below:
    https://service.sap.com/sap/support/notes/398589
    The periodic sadly can only be done for "import all" & not "import single".
    However, you can try the following unconditional modes:
    http://help.sap.com/saphelp_nw70/helpdata/EN/3d/ad5b814ebc11d182bf0000e829fbfe/frameset.htm
    - Regards, Dibya

  • XML import issues in CS5.5, but not CS5...

    Hi guys,
    I'm currently using the Production Premium CS5.5, and have been trying to import an XML from Final Cut Pro 7 into Premiere.  The issue is that none of my audio tracks appear in the sequence, nor any video tracks aside from my 2 main tracks.
    This isn't a problem in the previous version (CS5), as I can import the same XML and all my audio tracks, etc. show up in the sequence.
    Since I just started playing with CS5.5, I'm wondering if there's something I don't have set up properly?  Is there a conflict w/ having CS5 and 5.5 installed?  Has anyone else encountered a similar issue?
    Thanks for the response, if you got it.  I really really appreciate it. 

    So, I started figuring out what the issue is, but not how to fix it:
    I had some overlay graphics (Quicktimes w/ Alphas) that were placed over my main video track, which I suppose Premiere doesn't like.
    The thing I can't figure out, is why I could still bring in the rest of the project with CS5, but not CS5.5.....

  • I have to open website which opens only with google but not from safari. how can i get such google?

    i have a website which opens only with google, but not google from safari. how i can get google w/o using safari?

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the errant extension by uninstalling and reinstalling it. Its settings will revert to their defaults. If the extension still causes a problem, remove it permanently or refer to its developer for support.

  • Downloads - I want to open some PDFs/other file types from the internet but not have to save them; I can't figure out how to view them and close them without having to save them first.

    Downloads - I want to open some PDFs/other file types from the internet but not have to save them. I can't figure out how to view them and close them without having to save them first. When I click on a file, the downloads box opens and depending on the setting, it auto saves the file or asks me where to save the file. What if I don't want to save it anywhere, I just want to view it and close it?

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • My Iphone 4, to which all my outlook email is forwarded to. is only receivng some of the emails but not all. It has worked beautifully in the past but no longer. What can I do to get all emails?

    My Iphone 4, to which all my outlook email is forwarded to. is only receivng some of the emails but not all. It has worked beautifully in the past but no longer. What can I do to get all emails?

    I would just explain that this just started happening, that nothing has changed on the phone, that it is an original iPhone and I wondered if they are implementing a change in coverage with their Edge network in my area.
    If you restore your phone, you will be given an option to back up your phone at the beginning of the process (see step 6 here: http://support.apple.com/kb/HT1414).  You will be given the option to restore to that backup at the end of the restore process.  Your messages are stored in the backup so restoring to the backup will return the messages to your phone.  Be sure to import your photos and videos to your computer (see http://support.apple.com/kb/HT4083) and back up your contacts somewhere before restoring your phone as these sometimesget lost in the restore process.

  • How to use time capsule for wireless back-up but not internet?

    Hello,
    I have a tower and recently a laptop at work. The tower is connected to our local network with an ethernet cable and the laptop with wireless. So, the internet connection is fine for both.
    I was hoping to use my time capsule to do time machine backups on my laptop. Do you have any advice on how to configure this? I do not want to use the time capsule to extend my Internet, as I believe my work I.T. would prefer to handle all access to their  network.
    Perhaps there is some documentation about doing this that you could point me to? I have not been able to find it.
    Thank you for your help.

    Your original question was How to use Time Capsule for wireless back-up but not Internet?
    There is no reason for you to connect the tower....or anything else...using Ethernet if your goal remains that same as you stated.
    If you are asking if you can backup the Tower using Ethernet, and not wireless, then you can connect the tower to one of the LAN <-> ports on the Time Capsule....not the WAN port.
    Yes, it appears to work without plugging into my tower.
    Correct, it will work.
    I just have to select the network that it created. Of course, I have no access to the Internet while this is happening and it can not auto backup, unless I am on that wireless signal.
    As I stated, that is the downside to trying to back up without an Internet connection.  You have to establish another network...and backup over that network.
    If you are asking if you can stay connected to the work network while also backing up to your non-Internet "private" network, that is not possible.

Maybe you are looking for

  • How to find out the Area Menu for a Report/ Table/Function Module

    Hi, Is there any procedure to find out the <b>"AREA MEANU"</b> for a Report/Table/Function Module... Or is there any Transaction code / Report is available to find out all the report for a particular "AREA MENU". Thank you for your quick response...

  • Importing mpeg2 and video quality of final DVD

    I had a company create an mpeg2 file from a master for a dvd project I'm authoring. I'm not sure what format the master is on, I'm guessing BetaSP but it is something other than a DV format which is all I can handle. When my client saw the finished D

  • How is SP 13  service pack Sender File Adapter View

    Hi Xi Guru's                  In sap xi SP 13 Service Pack , what are new parameters added in File Content Conversion Parameters .

  • Install 11.1.2

    Hi All, We have 3 servers Server1 : BI ( financial reports) Server2 : Planning Server3 : HFM,FDM In which servers do we need to install MS office ....

  • Multiple Enemies?

    Simple question on performance I have lots of enemies being created and put in a array, Around 30 enemies in total The enemies use pythagoras to work out there distance to the player the use cos() to move to the player DistanceX = this.x - Main.Pl.x;