Question about setting user

Hello
I have a simple report where I have a user (item number) setting, if a user wishes, allows to get information about this number of points. If the user does not meet in this setting at the time of the report, must be given all the results of the query. I did the setting user DO NOT need when you set it in oracle applications, but I get no output if I don't know the parameter user.
Thank you
A/A

A/A,
Can send you the query used by your report? There are two ways I can think off of the top of my head for this problem. First of all, to DECODE the item_number so parameter if it is null, it uses the value of database for the item_number. Second, allows you to encode a trigger After-Parameter-shape (CSA) to test if item_number is null and is not null, add it to your report query using a lexical parameter and add "ITEM_NUMBER =: P_ITEM_NUMBER" to the query.

Here is an example of option 1:

SELECT *
  FROM products
 WHERE item_number = DECODE(:p_item_number,null,item_number,:p_item_number)

Here is an example of the second option:

   SELECT *
     FROM products
   &WHERE  /* here's the Lexical Parameter */

If no item_number is given, and WHERE there is NO, so it has no effect on the query. If an Item_Number is given, then your trigger CSA would look like this:

BEGIN
   IF :p_item_number IS NOT NULL THEN
      :WHERE := 'WHERE ITEM_NUMBER = :p_item_number';
   END IF;
END;

The resulting query that running would look like this:

   SELECT *
     FROM products
    WHERE ITEM_NUMBER = :p_item_number

I hope this helps.
Craig...

-If my response or response from another is useful answers your question, please check the response accordingly. Thank you!

Tags: Oracle Development

Similar Questions

  • Question about SET log_buffer and SCOPE = SPFILE

    Good evening

    I am teacher Oracle. In the book I use it says that I have to specify the SCOPE = SPFILE in order (because it is a static parameter):
    alter system set log_buffer = 6m scope=SPFILE;
    It is said that if I specify the scope as indicated, the command will succeed, but I still get the error:
    SQL> alter system set log_buffer = 6M scope=SPFILE;
    
    alter system set log_buffer = 6M scope=SPFILE
                     *
    ERROR at line 1:
    ORA-02095: specified initialization parameter cannot be modified
    
    
    SQL> show user
    USER is "SYS"
    SQL>
    I am logged in as "SYS as SYSDBA.

    My question is: why it is not working? (the book says it should).

    Thank you for your help,

    John.
    SQL> alter system set log_buffer=7249920 scope=spfile;
    
    System altered.
    

    It works for me.

  • Question about setting up a Wi - Fi on my 1985-2001 Satellite connection

    I've had this laptop for a few years and never had a problem with my WiFi. I am not very computer, so when the computer is telling me things like that I have a bit of stuff I panic. How should I do?

    I have a Satellite phone with windows XP Home Edition 1985-2001.
    It s says: (Windows cannot configure this wireless connection).
    When I try to connect to the WiFi, it connects always to internet when I plug but not via WiFi. He also says: If you have enabled another program to manage this wireless connection, use that software.

    If you want windows to configure this service Configuration (WZC) to start the wireless zero configuration wireless. For more information on starting the automatic configuration service, see article 871122 in the Knowledge Base Microsoft on the microsoft.com Web site.

    So I did and that's what he said:
    Some computers and hardware manufacturers provide their own configuration software that replaces the service provided in Windows Wireless Auto Configuration. In this case, you must use the software that is provided by the manufacturer to set up your wireless network.

    So I have two questions, this computer has its own configuration software and two how to fix this problem?

    Could someone help me please?

    Hello

    > this computer has its own configuration software and two how can I solve this problem

    As far as I know that Toshiba laptops are delivered with various wireless network cards; for example with Intel or Atheros WLan card.

    First of all, you should check you seller of WLan cards. If you are using the Intel card, possibly the Intel ProSet WLan utility is installed and try to configure the WiFi connection.

    If you use the Atheros WLan card eventually the WLan Atheros Client Utility tries to set up and establish the connection.

    So, you can use either such 3rd utility or you will use the Windows own option to use the WiFi network.
    If you want to use clean Windows Wireless Auto Configuration, you can enable it in the network-> properties from the network connections wireless-> tab-> choose brand wireless networks the option called use Windows to configure my wireless network

    But if you want to use one of the 3rd party (Intel, Atheros) configuration utility, and then start just such program, and check the settings.

  • The question about the user-generated content

    Hello

    my application is a connected set of bbm and is also connected e-mail.
    It allows players to send each other messages while playing a game.

    is this considered to be generated by the happy user?

    If do what methods use in safegaurding a message?

    Not under the context in which you ask either at the moment.

    For bbm and email you could always encrypt the data, but I think it's overkill for this period of the APA.

  • Question about setting up a VLAN

    Let me start by saying: I am a network/security engineer.  I am new to VMWare, so this can be a very simple question.  Can someone point me to the documentation, confirm my assumptions, or help me to understand how to configure multiple VLANs on a single VSwitch.  I have several servers that contain only two cards that are based on the ESXi5.0.  I configured for the management of one and the other should be used for Virtual Machines.

    I need to have several VLANs on each server ESXi.  From what I've seen so far, I'm assuming I need to use the VSwitch Exchange.  I think I need marking in the portgroup (s) of installation and make sure that they match the VLan ID that I use on the physical switch.  I think the next thing to do is to associate the second physical NETWORK adapter to the VSwitch with all groups of defined Port.  Then make sure that the port on my switch is configured as a Trunk for all port the VLAN identified in the port group.  The switch is a device of L3, so all the routing between VLANs would be processed by switch.

    Is this correct, or I'm completely off base on that?

    You have it.

    Also, here is a KB that covers a part of the configuration of the switch.

    Example of configuration of the virtual switch VLAN tagging (VST Mode)

    Also a blog on the topic of the VLAN tagging (VST)

    http://www.VMware.com/technical-resources/virtual-networking/virtual-networks.html

  • Question about setting up the integration of siebel beep

    Hello

    I am new to siebel environment, I installed siebel and try to configure the integration beep part

    Step 1:

    I stopped the services of siebel, and then I copied the siebel to siebel tools driectory srf file and then imported the pix files and compiled

    and then I try to configure the service to start, deleted files existing integration and wsdl file and then imported xmpl I compiled. Now my quesiton is before you start the siebel service, should I copy the srf file compiled the directory from the siebel server and start the server using this framework of strategic results? then configure the incoming service

    Yes, you must copy the compiled objects srf / folder on the Siebel server.

    Check the Doc ID 546999.1 on support.oracle.com to find more information about repositories and changes in the repository.

    It will be useful,

    Wilson

  • Question about proxy users

    Hello

    I am new to the Oracle security, and I would like to know how to connect to the database using the proxy users and what is the benefit of it? Can someone give me some advice. I have experience with the Oracle database and security.

    Thank you
    Peter

    A standard use case, is you want to have a connection pool in the intermediate level where all application users are connecting to the database to the same user. This allows you to avoid the overhead of creating and destroying a physical database connection whenever an application user requests a web page (creation and close a physical connection, whenever someone asked a page usually would take more time and potentially much more time that actually generate the page would take) and it allows to avoid having tons of physical connection in your pool of connections that can only be reused by user of a particular application which means that you end up with many, many more connections to the database that you need.

    In any environment of three levels, this means that you end up with a connection pool that uses a single shared user database account to do everything. If you do not use the proxy users, this means that your application must know how to create users of the application, it must manage the privileges, it must implement all the security you need, etc.. And this means that the shared user account that everyone use needs to have all the privileges of any user of the application would never which means that the shared user account ends usually run more privileges should it really 99.999% of the time because once each year that some admin user must do something. If the shared database is compromised (either because your application has a security hole, or because someone had access to the shared user account password) the attacker has a much wider range of attacks that they can perform.

    If you are using proxy users, however, you get the best of both worlds. The middle-tier connection pool connects to the database as the shared user has but all actual interactions occur as a user B. Your application needs to build in the ability to manage and apply privileges - it uses which provides the database. Your application does not need to build into the safe, it can take advantage of the ability of Oracle to grant special privileges to some users. You don't end up with a tremendously super-powerful shared user account, you grant just all different individual accounts regardless of the privileges that they actually need so users admin can do certain things and professional power users can do a combination of things and not a separate account can do anything.

    Tom Kyte has a nice discussion on proxy so users

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:21575905259251

    Justin

  • Installation Question about privileges user/role

    OK, I am new to Oracle, (well I last worked with him when he was 8i).

    (1) I have a database with a tablespace that contains the replicated data form another source and I want to create a role that has select permissions on the tables.

    What I've already put in place. I created a role with the role CONNECT and privileges select object on all tables of this user (users that are replicated to the database tables). It works, the role can execute select statements out of these data.

    (2) I want this part (or at least users with this role created) in order to create the tables/views/etc, (in other words for development rights) without giving them all change the rights on the objects mentioned in part 1. I don't know how to proceed.


    Thanks for any help you can provide.

    What version of Oracle?
    The CONNECT role should not serve on 11 GR 2, in my opinion, that it has been reduced to what the only privilege of create session. Oracle also recommends not to use the role of RESOURCES more.

    I think that you would give the special role created for developers only those system privileges they need, such as create table, create the sequence, create procedure, etc...

    This will allow them to create objects under their own username but no other objects (except the public) users will otherwise you do not explicitly add the role.

    Avoid to grant privileges such as create any table.

    HTH - Mark D Powell.

  • Questions about setting should level parent and units

    Hello

    We have a requirement for a sales manager for forecasting sales at level zero, for example
    by the customer. And the regional manager to adjust the number at the territory level (parent).
    Any ideas on the best way to do it.

    For example:

    Sales Manager input data to the Customer1, 2, 3, etc.
    Regional director can adjust to Total_Territory, and then return the data to the bottom. Basically, crush
    What was projected by the Sales Manager.

    Total_Territory 9
    | _Territory_A 4
    | __Customer1 1
    | __Customer2 1
    | __Customer3 2
    | _Territory_B 5
    | __Customer4 3
    | __Customer5 2

    Can we use target version to apply it?
    If we use the target version, can the user planned to Total_Territory even if there is a
    data on the client (level 0)?

    Any other ideas on how we can implement this requirement?

    The second challenge is what is planned is not the amount, but unit.
    If the regional manager you want to increase the target from 9 to 10.
    where should we allocate the additional unit of 1 to? And we cannot have
    Decimal into a unit.

    Thank you

    Lian

    Hello
    Out of curiosity, this could be an insurance company?
    I would recommend separating the target and down at the top of the versions and show them the two side-by-side to the users. Let your manager territory defined targets on the target version, but don't let it substitute the numbers upward. You can view the gaps in a third column to alert the Director of sales and Territory Manager. Responsible for sales can be held accountable for the achievement of the objectives. In my view, precisely assign targets to individual customers requires a judgment call and sales only for this Manager. So, I recommend you to perform the calculation of the allowance to the version target.
    Regarding decimals, if you create a fictitious client under each territory and mark them with an attribute or UDA, you can place the rest of the distribution of your integer to this member. It helps the sales managers to understand that there is an additional objective for the territory which is not shared among customers yet. If the structure that I would recommend would look like this:
    Territory 1
    -Territory 1 client buffer<--Dummy>
    -Client 1
    -Client 2
    -etc.

    See you soon,.
    Alp

  • Question about setting cached remote SharedObject

    If I have a remote SharedObject connected, and I read a property/slot (e.g. so.data ["myProp"]), these data would be read from a local (or RAM) cache or the SO would, in fact, a call to the FMS?

    I wonder if I can read SharedObject properties with impunity.

    He was reading the property of local data. When SO accessories change, FMS distributes update message to connected users and users maintain these data locally.

  • question about setting up DAD

    Hi master,


    Please forgive me if I'm posting in the wrong forum.


    I am little confused on setting up DADDY (database access descriptor) in oracle 10.2. Business Edition

    in the past, we can configure DAD in 10g express edition with a few scripts, on sql prompt, it does not require any color server or an application developer to facilitate access to the browser.

    but I think that this isn't the case with oracle database 10g R2, enterprise edition, to add a few lines in the DAD.conf files, and we use developer to access applications via browser.

    can anyone suggest how to achieve without using application server on windows platform?

    What should I configure this?

    Thank you and best regards
    VD

    Here's a simple tutorial that I used, it works.

    http://www.Oracle-base.com/articles/10G/dbms_epg_10gR2.php

  • question about the user interface for toolbar in 5.0.0

    We use the BlackBerry JDE 5.0.0 to develop an app for the storm.  There are a bunch of net.rim.api.device.ui.toolbar, but is not part of the documentation of the api.  Anyone know if it is officially available for development?  We noticed a problem with that because some methods require a StringProvider class that doesn't seem to be available.

    Thank you.

    It was not officially released. I wish it was but the biggest way they prevent you from using it is to ask you to use the StringProvider class. I messed around with it for awhile, but as it is not official functionality may vary.

  • Question about setting up Site Studio

    OK, so we'll use site studio to generate web pages for our project, but I think I hit a nasty wall that I'm a little lost with. Of what I've read, you can run "site studio.exe" (or something to that effect) out of the windows machine, what University Complutense of MADRID was installed. The problem is the AAU has been installed on a device of based nux and the only way I can access the server through windows is via SSH.  If I am on how to run the Studio Site is anyway around the fact that it's on nux. Or is my hypothesis on the Site Studio even right to start?

    SiteStudio is used to generate Web sites. It is a component that runs on any content server installation, regardless of the environment.

    The file "sitestudio.exe" thingy is an IDE editor that allows you to change the structure of the sitestudio site and other things. It is not required for anyone, except the developer. It's not not to be installed on the server. You can run it on any Windows machine, including your desktop computer, which can connect to the content server.

  • Question about setting preferably distribute

    Hi scripters,.

    I have problem with the code below, I am assaigning the value of 41 points at the measurement of distributing area but the InDesign took an incorrect value as mentioned below.

    app.alignDistributePreferences.distributeAbsoluteMeasurement = "41";  the InDesign gained value as "116,22 pt" in the measurement object area to distribute.

    Using InDesign CS5/Windows/Javascript

    Please suggest any.

    Thank you and best regards,

    Karpanai

    Yes, because 41 mm is exactly 116,22 pt

    --

    tomaxxi

  • Question on planning user id

    Ask a question about planning user.  We are on 11.1.1.3.  When a user logs in the planning of the use of the data forms, Essbase Sessions shows a session for the user named admin (as opposed to the id of the user).  When the same user uses ad hoc analysis of SmartView, Essbase Sessions presents the session with the user's network connection.  Just curious to know why, when the user is in planning using data forms, Essbase Sessions doesn't show them with their network connection.  THX.

    Planning will connect to Essbase by using the account defined in the planning data source and not with the user who is logged that is why you will see the admin in the sessions.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

Maybe you are looking for