I want to restrict my database

hi
I have a oracle enterprise 8 on my server machine. There are five user connected to the server through the peer to peer basis. I want to restrict my database on server. I want that user can only connect through the forms but they cannot be connected through any promt (i.e. SQL, PL/SQL, or Worksheet). Simple is that i want that the users only can connect with my server through forms only.
plz help me, its crucial for me.

CREATE OR REPLACE TRIGGER NOTOAD_VB AFTER LOGON ON DATABASE
DECLARE SHOULD_EXECUTE INTEGER;
BEGIN
SELECT DECODE(SUBSTR(UPPER(PROGRAM),1,4),'TOAD',1,'VB',1,0)+DECODE(INSTR(PROGRAM,'\',-1),0,0,
DECODE(SUBSTR(UPPER(SUBSTR(PROGRAM,INSTR(PROGRAM,'\',-1)+1)),1,4),'TOAD',1,'VB',1,0))
INTO SHOULD_EXECUTE FROM V$SESSION WHERE SID=(SELECT SID FROM V$MYSTAT WHERE ROWNUM=1);
IF SHOULD_EXECUTE > 0 THEN
raise_application_error(-20001,'Please no toad and VB yet, try again later');
-END IF;
END;

Similar Messages

  • I want to connect two database in Oracle

    Dear All
    I want to connect two database in Oracle ver-10.2.0.1.0 ,And fetch data from 2nd table.
    OS - XP Pro.
    Regards,
    Parwez

    Configure remote DB in TNS first.
    Create DB link.
    CREATE {PUBLIC} DATABASE LINK "DBLINKNAME"  CONNECT TO "remoteuser" IDENTIFIED BY "remotepwd" USING 'REMOTEDBTNSALIAS';Query remote tables using
    select * from remotetable@DBLINKNAME;

  • Want to restrict out of 3 @prompts

    Hi Folks,
    I have one Webi report which has 3 @prompts for Purchase order number, Serial number and Sales order number, User is supposed to enter any one value as these prompts are on OR condition. For example, I enter Serial number and rest as '*'.
    This is fine as far as i use only one prompt with a known value. But when i pull all prompts and enter any one value, report keeps running for around 8 hrs and does not product any output.
    So I want to restrict only one prompt. Like if user puts value for any one prompt, other prompts gets disabled. so Query will not perform full table scan and will search for records using only one value that is entered.
    At the same time I want to keep provision of '*' also.
    How to apply this functionality at Report level?

    Hi,
    when you say disable the prompts when user selects one of the Purchase order number, Serial number and Sales order number. what did u want? say user selects the serial number do u want to pull all records pertaining to selected serial number along with all the records related to the other fields((Purchase order number,Sales order number)) or when the user selects the serial number did u want the report to run only for the serial number selected but ignore the remaining prompts by not fetching any records for those prompts ?
    if u want to run the report only for selected prompt but not fetch any records for the remaining, u shud be passing some kind of junk values as default for the remaining prompts so that they are out of picture(but since they are in OR condition u will get only records containing the selected prompt values)
    Thanks,
    Karthik

  • My Client wants to restrict appearing used PO Line items in MIRO

    Hi Gurus
    My client wants to restrict appearing blank line items agaisnt already used Purchase Order Items (Full Qty GR / IR happened, GR Based IV) in MIRO so that user can not book another invoice against the same PO with diffrent ref. no. and in date.
    Is there any way (User Exit / Screen Variant) we can make it?
    Please reply.
    Thanks
    Sanjib

    Hi
    Even if I set Final Invoice Indicator in MIRO and booked invoice against the PO systems is showing blank line items (Amt & Qty are blank) in MIRO agaisnt the PO.
    Can you please run the scenario and tell me is there any way that we can restrict system showing blank line items against already processed PO items in MIRO. I have tried booking invoice agaisnt individual del note but blank line items are there.
    Thanks
    Sanjib

  • Want to restrict the vendor at plant level

    Hi Experts,
    As per standard SAP, once the vendor is extended to comapny code then buyer can place order in any plant of same company code. My client wants to restrict the use of vendor at plant and after some business approval, will allow to use the vendor for specifc that plant. Could you please help me, how can I acheive this ?
    Thanks in advance,
    Regards,
    Ajit

    There is no solution for you in standard you have to develop something yourself.
    It is even possible to create purchase orders before a company code view is created for a vendor master, hence it cannot be controlled via company code blocks. The block at company code will have an effect on goods receipt and invoice receipt, which is too late.
    Purchasing blocks can only be set at purchasing organisation level. Even you can create a vendor with a plant level , it is not possible to set a block at this level. If this purchasing organisation serves many plants then a block will affect all plants.
    only with a  purchasing organization specific responsible for a single  plant you can meet your requirement in standard with a procurement block at purchasing org level.

  • I want to query oracle database from sql server can anyone tell steps 2 fo

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fol

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • Want to restrict output of T.Code MD4C.

    hi friends,
    i want to restrict output of T.Code MD4C in which it displays all materials for one SO but i want to display only FERT HAlB and RAW materals. how should i do it. there is one badi  MD_ADD_COL_OVERVIEW  (Display of Additional Columns in the Material Overview  )  . is it write place to do it if yes i never use BADI so kindly can u send some information about badi and how to use it.
    thanks in advance.

    Dear Friend,
    Just go through the Sample code of that BADI.
    For more Information Just check any implementations are there for this BADI.
    With Regards,
    Sumodh.P

  • I want to connect a DataBase(oracle) through Tomcat5.

    i want to connect a DataBase(oracle) through Tomcat5.
    pls tell me the steps how can i do this .or pls give me any link
    thanks previously

    The bottom line is. If you can't figure this part out on your own then you have no business doing any JDBC programming anyway. Think of it as a minimal competency test to make sure it's safe for you to proceed. It isn't safe yet.

  • Want to restrict user form putting any value in condition in po

    Dear all,
    ply help on this matter.
    i want to restrict person for put any value in condition tab for po.
    let say i am putting "FRC1" condition and value let say 5rs then i should get an error saying your are not authorised.
    puprose:condition like FRC1 ETC should not be allowed to change.
    regards
    amey

    Hi,
    To restrict any manual entries for a Condition type, In that condition type under Changes which can be made maintain 'D' for Manual entries option.
        Along with this maintain the condition record for that perticular vendor for the amount which has to be paid for Freight.
    Regards,
    Vijay

  • Want to restrict data in T.code MD4C

    hi friends,
    i want to restrict output of T.Code MD4C in which it displays all materials
    for one SO but i want to display only FERT HAlB and RAW materals. how should
    i do it. there is one badi MD_ADD_COL_OVERVIEW (Display of Additional
    Columns in the Material Overview ) . is it write place to do it if yes i
    never use BADI so kindly can u send some information about badi and how to
    use it.
    thanks in advance.

    hi,
    BADI you mentioned is not present in Definition view ie se18.
    To implement BADI using se19 you need to check 1st wether it is present in definition view.
    Once you find appropiate BADI you will have to write code in its interface method.
    For this purpose you should be aware of ABAP OOPs concept.
    Regards,
    SUDHIR

  • I want to access the database with user name and password without con. info/udl

    hi to all,
    im doing project related with database... normally i'll connect ***.udl file to open database.vi.
    now what is my question is I want to open the database with the user name with password.... y i need this because once i run the program the program should ask username and password to open database for write/read operation. if its wrong user name and password means program should be denied... 
    can any tell how to access the database toolkit with the username with password....
    im using labview 7.0... 
    i think my question is clear....waiting for reply thank you in advance...
    pls see this attachment.....
    Regards,
    N. Srinivasan
    Attachments:
    access.vi ‏37 KB

    i have already read that link in the discussion forum...but im still have some confussion in... i attached file is so like to give user name and password..?
    and one more things can tell wat to do in ODBC and MDB and in UDL for password lock.. each time i run the promgram it should ask password to acces the database.. 
     thank you a lot for your reply.. 
    it will be more more useful if u clear my doubts clearly....
    Regards,
    N. Srinivasan
    Attachments:
    user=pass.PNG ‏35 KB

  • Entourage is verifying and wanting to rebuild my database?

    Entourage says it can't find my database, is verifying and wants to rebuild my database.  Is this okay?

    Hi Ruth, I think I'd quit it for now.
    Entourage Repair When Microsoft Entourage Cannot Find Your Database On Hard Drive...
    http://www.msentouragerecovery.com/blog/2010/12/entourage-repair-when-microsoft- entourage-cannot-find-your-database-on-hard-drive/
    Rebuilding should be avoided unless there is database corruption...
    http://www.office.mvps.org/database/rebuild.html
    Entourage Identity/Database...
    http://www.office.mvps.org/database/entourage.html

  • I have a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

     i have  a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

    Hi,
    To hide/disable controls based on user group in an InfoPath form, a solution is that we can call User Profile Service to check the group of current user, then hide/disable
    specific controls by setting some rules in form.
    Here is a demo with steps in details would be helpful to you:
    http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/
    More information about checking if a user is a member in a SharePoint group within web InfoPath 2010 forms:
    http://www.hishamqaddomi.ca/spg/index.php/sharepoint-2010/infopath-2010/65-checking-if-a-user-is-a-member-in-a-sharepoint-group-within-web-infopath-2010-forms
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Want to restrict infotype maintainance 9(Bank Detail) for  withdrawn emp

    Hi Experts,
    I want to restrict the maintainance of infotype 9 for withdrwan employee, either this has to be done through configuration or writing code in module pool of infotype 9.
    Thanks in Advance.
    Regards,
    IFF

    hi,
    there will be one field   Maint.aft.leave under general Attributes.. This field controls whether you can record master data after an employee has left the company. A warning tells you whether you are permitted to do so or not.
    Regards,
    Kapil

Maybe you are looking for

  • 5th Generation Ipod wont Work in Itunes

    Hi I have a 5th generation Ipod. I recently tried to restore but it wont restore i tried 6 times to restore it and nothing happend it keeps on asking me to restore over and over. I unpluged and pluged it back it asked me if i wanted to format it so i

  • Schedule query

    Hi, is it possible to schedule a query in Bex 3.x?  I mean, I'd like to perform a query each night at 9.00 pm with the value 001.2011:012_2011 for the madatory parameter 0fiscper and, the result of the query would be saved in c:\temp. How can I do th

  • HT2500 Can you block email on a mobile me acct?

    I ordered something online from ToysRus, stupidly gave them my email and now I'm getting tons of junk mail with no unsubscribe options. So frusterating!!! Is there a way to block or flag emails as spam?  I was able to do this on my yahoo acct...... T

  • Why after upgrading to iCloud does my CD drive selectively not read .pdf files but works otherwise?

    I recently upgraded to OS-X 10.7.4 and icloud and after doing this my CD drive on my macbook pro no longer sees some .pdf files on my computer. The disc in question works fine on my other computers so there is not an issue with the disc. I have upgra

  • Outlook 2010 - Does remove MUI uninstall Outlook ?

    Hello, How to have the confirmation Outlook 2010 is really on my computer without "Programs and Features" panel. With the following PowerShell command line, I obtain the MUI of Outlook and not the confirmation Outlook is installed. Get-WmiObject -Cla