Misc PL/SQL based Application design/programming issues 101 (101.1)

-* background for these questions is at the bottom of this post:

Question 1:
I read a little on the in and settings out and that IN "of reference" and OUT and IN-OUT are of value. For me "by reference" means "pointer" as in C programming. It seems to me that I could call a function with a parameter and NOT put it on the right side of an assignment statement. In other words, I call my function

get_something (IN p_test1 varchar2) return varchar2;

SP1 which has a variable named V_TEST1.

So... can I do this? (method A):

get_something (V_TEST1);

or what I need to do this (method B):

V_TEST1: = get_something (V_TEST1);

In addition, even though it may disturb the thread (we'll see), it seems to me that IN, since the reference, will always be more effective. I have several concurrent users using this program: if it affects my thinking on this issue?






-* background *
far: < < I have read and am reading on the net, read and read books oracle oracle (to have a full account of safari), tome of Feurstein reading, have read the faq here.
Situation Bottom Line: < < have a lot to do in a very short time. There's a lot riding on this. Any pointers will be appreciated. After we arrive at an undetermined time I can redo this adventure as a pl/sql faq and submit for publication (y ' alls call). Some questions may be hare brained just because I'm panicking a bit.
Situation (long Version): < < write a pl/sql backend to the front-end MS Reporting Services. Everything started to pl/sql about 2 months ago. Took me forever to learn about Ref-Cursor as pipe between oracle and all client applications. I have now created a package. I've been programming for 20 years in many languages, but brand new to pl/sql. However, pl/sql sql has me released from the myriad of limitations in MS of the RS. My program is becoming big (for me - I do a lot a little) pks is currently 900 lines with 15 functions up to now. Currently SP (pls) is back up to 800 lines. I have some stuff in the sp then turn it into function and move it to the package.
What does application?: < < < < back end for MS Reporting Services Web front-end. It will be a very controlled 'ad hoc' (or the illusion of the ad - hoc) web interface. All sql queries are built running and run through the "open cursor Ref for end - sql statement -;" the data that is returned through THE ref_cursor. Goal is to have nearly 100% of the features in a package. Composing the SP will be minimalist. Reports of the SP Services calls, passes X number of parameters and retrieves the ref_cursor.
Oracle version: 10.2 (moving to 11g within the next 3 months).
Environment: Huge DW in a massively shared environment. Everything is locked and requires a formal request. I had to have my authenticated for a few packets of DBMS system just to start simple pl/sql programs.

Brad Bueche wrote:
I read a little on the in and settings out and that IN "of reference" and OUT and IN-OUT are of value.

And what it has to do with:

V_TEST1: = get_something (V_TEST1);

In any case, in Oracle, you cannot use function as:

get_something (V_TEST1);

and MUST use:

V_TEST1: = get_something (V_TEST1);

Now, if I understand by calling:

get_something (V_TEST1);

you think that a function that would change V_TEST1, it is not necessary to assign it again, right? If so, you cannot change IN parameter value.

SY.

Tags: Database

Similar Questions

  • Install HRCS9.0 Linux question: the application designer and Tuxedo domain Boot have SQL error

    People,


    Hello. I was installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and Windows XP-based client computer.  The architecture of my internet is WebLogic11g/Tuxedo11g/OracleDatabase 11 GR 1 material. PeopleTools 8,53 works correctly in the browser.

    In the database server Oracle Linux 5.10 machine, I run scripts 'createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql' one by one. Can I use Data Mover to load Windows XP data into the Oracle Linux 5.10 DB HRCS90 instance. The Data Mover script hrcs90ora.dms is done correctly in Windows XP. Configuration Manager is configured correctly.  But when I login in the application designer, I can't connect and get the message as below:


    «Security Table Manager (Get): the database is release 8.52.»  The PeopleTools running require databases at 8.53 release. »


    I followed the http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf document to upgrade HCM and HR 9.0 revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. My upgrade is complete. The above problem is solved.

    When I login in the application designer in Windows XP, the error message as below:

    File: E:\pt853-903-R1-retail\peopletools\src\pssys\stmget.cpp SQL error.

    Stmt #: 2539 error Position: 26 back: 904-ORA-00904: "OPERPSWDSALT": invalid identifier:

    Fail SQL Stmt:

    Select the VERSION, OPERPSWD, OPERPSWDSALT, ENCRYPTED, SYMBOLICID, ACCTLOCK from myAccessId.PSOPRDEFN where OPRID =: 1

    When I boot the Tuxedo Application Server Domain HRCS90 under Linux, I get the same error message as below:

    File:/VOB/PeopleTools/src/pssys/stmget.cpp an SQL error:

    Stmt #: 2539 error Position: 26 back: 904-ORA-00904: "OPERPSWDSALT": invalid identifier:

    Fail SQL Stmt:

    Select the VERSION, OPERPSWD, OPERPSWDSALT, ENCRYPTED, SYMBOLICID, ACCTLOCK from myAccessId.PSOPRDEFN where OPRID =: 1

    ... ...

    GenMessageBox (0,0,M): Signon database: could not access the HRCS90 database with user Psalm code

    I checked the PSOPRDEFN table in the database Linux HRCS90, not the OPERPSWDSALT field.

    I also checked the connection process PS the user traverses the 3 tables: PSOPRDEFN and PSACCESSPRFL, PSSTATUS.

    My oprid, the symbolicid and the accessid ownerid in the 3 tables are correct.

    My question is:

    Why is there a strange OPERPSWDSALT field in the SQL statement that causes Signon failed?  How to solve the problem of access code?

    Thank you.

    > Then it connects with SQL > and then run script rel853.sql, but its outcome is not just because the database is started with sysdba.

    The database is always started '' as sysdba. '' "Useless" to connect as sysdba to run the PSoft script while accessid.

    You need to come back in the book of the Oracle.

    Fair enough, this is my last word to this thread.

    Nicolas.

  • When users who are working with an Application based on SQL (accounting), application suddenly closes!

    When users working with an Application based on SQL (accounting), application closes without prompting.

    We have virtual server Hyper-v with SQL server 2008 sp1 - other departments report no problem just for accounting

    They can't really work...

    Thank you

    Hadad

    These MS Answers forums are intended for the home rather than the it professional user. I suggest therefore that repost you your question in the forums MS Technet here:

    http://social.technet.microsoft.com/Forums/en-us/categories/ .

    (I'm sorry, but I can't move this thread for you because the two forums are working on separate platforms)

  • Where to see the output of my Application Engine program?

    People,

    Hello. I create my first program AE in the application designer and the test in 2-tier mode. I opened the AE in the application of program designer and click on Edit-> delivery of the program. Then, open the log file to see its performance and know that the EI program runs out. But I do not know where to see the output of the EI program.

    The EI program runs only a 'select' SQL statement. ResultSet of SQL's output.

    People know where to see the output of the EI program?

    Thanks in advance.

    Simply executing a SQL in AE produces no output. AE is not designed to be a reporting tool, so it requires a lot of effort to produce this type of output. You can use a "journal" step to write messages to the log file, or a call the MessageBox function in one-step PeopleCode will do the same. However, to write a SQL select results to a file, you use, for example, basic file API methods (& F = GetFile (...); F.Writeline("Hello"); & F.Close (); etc.), methods of layout of the file from the API file & F.SetFileLayout (...); (& F.WriteRecord (...)); or use the query API RunToFile method.

    Kind regards
    Bob

  • I get this everytime I try to print from my design program (Splash): error in C:\windows\system32\spool\drivers\w32x86\3\LXCItime.dll missing entry: RunDLLEntry It just started and I have not installed anything new.

    I get this everytime I try to print from my design program (Splash): error in C:\windows\system32\spool\drivers\w32x86\3\LXCItime.dll missing entry: lack of entry: RunDLLEntry It just started and I have not installed anything new.

    Hello Lscherr,

    Thank you for your message.  To clarify, you are able to print out your design program?  You can try to perform a clean boot and printing of your design program.  A clean boot will start your computer without any 3rd party applications, you can then start your design software and test the printing functionality.  If you are able to print, the problem may be caused by another application of part 3.  Click HERE for instructions to boot.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Where is the subsystem by downloading Unix-based Applications (SUA) for Windows 7?

    I activated the function SUA in my Windows 7 Ultimate installation.  When I click on the hyperlink in the programs, need me to Download Center for the version of Vista SP1 of the SDK, which is quite old.  Reading the 'what's new' SUA page indicates I want download is to:

    http://go.Microsoft.com/fwlink/?LinkId=139521

    ... which of course is not.  This technet page also refers to the link above.

    http://TechNet.Microsoft.com/en-us/library/cc771672.aspx

    So, where is the correct download?

    Hello gbello,

    Thanks for posting on the Microsoft answers Forum.

    The Services for Unix components have been integrated into the operating system. With the release of Windows 2003 R2 and operating systems later, you do not need to download any package, all you need is to go to the control panel to add / remove Windows components, and select the components you need.  As you have guessed, there's nothing left for ever is the name "Services for Unix".  Windows 2003 R2 SFU components are called differently.  We have 'MS Services for NFS', "Identity Management of Unix" and "Subsystem for Unix - based applications.

    You might be interested in the following links:
    http://TechNet.Microsoft.com/en-us/library/cc772500.aspx

    http://blogs.technet.com/SFU/archive/2010/02/09/client-for-NFS-service-cannot-be-started-after-stopping-it-from-Services-console.aspx

    I hope this helps.

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Subsystem for UNIX - based Applications (SUA) missing.

    In my Win 7 Pro 64 - bit o/s the subsystem for UNIX-based Applications (SUA) is not listed as a feature that can be turned on.  And I don't see an option in the Setup program to add this feature.  How can I add?

    It is not included in Windows 7 Pro.

    Supported operating systems: Windows Server 2008 R2. Windows 7 Enterprise; Windows 7 Enterprise 64-bit edition; Windows 7 complete edition; Windows 7 Ultimate 64-bit edition

    To install SUA by using the Windows interface

    1. Click Startand then click Control Panel.

    2. In the Control Panel window, click programs.

    3. Under programs and features, click Windows turn features on or off.

    4. If the user account control dialog box opens, click continue. Otherwise, continue to the next step.

    5. In the Windows features dialog box, select the Subsystem for UNIX - based Applications check box. Click OK.

    6. In the Add Wizard functionality, on the Select features page, select the Subsystem for UNIX - based Applications check box.

      Installation may take several minutes to complete.

    Until the download package Utilities and SDK for subsystem for UNIX-based Applications (utilities and SDK for SUA) has been installed on the computer, you cannot run or modify scripts based on UNIX and UNIX-based custom applications. The utilities and SDK for package SUA is available for download on the Microsoft Web site at (http://go.microsoft.com/fwlink/?LinkId=139521).

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • Applications and programs crash when open file Explorer

    My programs and applications are blocking as soon as I open Explorer file (I use windows 8).  For example, when I go to attach a file to an e-mail, the Web browser crashes.  Also, when I go on ' Save as ' in microsoft office, word/excel crashes too.

    So far, I have:

    -Updated and rebooted

    -virus research (clear)

    -Startup in safe mode - safe mode will not allow not even me open microsoft word, and the problem persists when you use gmail via google chrome

    -re-installed office - no change

    What could I do next?  The computer was perfect up to this problem that began a couple of weeks.

    Help, please!

    Thank you

    Cara

    Hello Cara,

    Thanks for posting your query in Microsoft Community.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. You did changes to the computer before this problem?
    2. You get an error message when the applications or programs crash?

    The question could arise due to corruption in specific applications or due to file system corruption directly affecting the launch programs. In order to diagnose and resolve the issue, I would suggest trying the following methods and check if the problem persists.

    Method 1:

    Run the Troubleshooter of Apps and check if that helps.

    The Apps store is an automated tool that we have developed to deal with a number of known issues that may prevent applications from running correctly. This troubleshooting automatically solves some issues including the suboptimal screen resolution, incorrect security or account etc. settings. If the problem persists, refer to the remaining steps in the help article and check.

    Solve problems with a soft

    If the problem persists, try the following method.

    Method 2:

    Try to run a scan of the file system (CFS) auditor to check corruption of system files in the system. SFC scan will search for system files corrupted on the computer and fix them.

    1. Press the Windows key + X, click prompt (Admin).
    2. In the command prompt, type the following command and press ENTER:
      sfc/scannow

    For more information, refer to this link:

    Use the System File Checker tool to repair missing or corrupted system files

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • Renewal of my membership CC, payments made, but all applications and programs have disappeared.

    Hi all

    I renewed my membership full CC on 6 January of this year.  Payment of 45UKP taken by Adobe.  All access to all CC programs disappeared.  When I connect it tells me I have one year subscription, but when I tried to download any program it tells me that I left the 0 days of my free trial and I wonder if I want to buy the product. I contacted Adobe customer support chat, they have no idea what is the problem and so just lie - telling someone will contact me by email and the problem will be solved within 24 hours.  No one ever contacted me.

    Last conversation:

    Sidibé: I will increase the cases to the relevant team and our team will contact you by email within 2-3 days and resolve the issue.

    Colin Munro: Which is really not good enough. This happened for two weeks now. Told me almost a week she was refitted and someone would contact me. I did not. I paid for the product and I need to use it now. I need someone to contact me today.

    Sidibé: Let me check.

    Colin Munro: thank you

    Sidibé: I see that your case is still in process and however I put a reminder that our team will contact you within 24 hours.

    Sidibé: Number of cases: 0217575866

    Colin Munro: Through process person never has looked at him yet?

    Sidibé: No, means process, our team works closely with the question and we will contact you back as soon as the problem is solved.

    Colin Munro: If that was the case, then the bare minimum, I would have expected is someone sent me and informed me about this. It is really really poor service. 

    Sidibé: I apologize for the inconvenience.

    Sidibé: Since our relevant is always present in the case which is why you don't have any email.

    Colin Munro: I would like a team dealing with this email me now and confirm this please

    Sidibé: However our competent team will contact you by e-mail within 24 hours.

    Sidibé: I assure you that our team will contact you by e-mail within 24 hours.


    Of course, nothing has been heard of Adobe, and I still have no access to the products that I am paying.  Any help much appreciated.

    Colin

    This is a double post of: renewed my subscription CC, payments made, but all applications and programs disappeared.

  • Install PT8.53 with Linux question: connection process Data Mover and application designer

    People,

    Hello. I install PeopleTools 8,53 Internet Architecture.

    Server database is the database Oracle 11 GR 1 material.

    Operating system is Oracle Linux 5.

    I installed successfully JDK7, WebLogic Tuxedo 11 GR 1 material and PeopleTools 8,53 10.3.6, in Oracle Linux 5.


    I've been setting up of database PeopleTools8.53. Because the Wizard installation problem, I created PeopleTools 8,53 database manually by using starter PT853 Oracle database instance. I have run the following scripts:
    (1) utlspace.sql
    (2) dbowner.sql
    (3) ptddl.sql
    (4) psadmin.sql
    (5) psroles.sql
    (6) connect.sql


    Then, we perform Data Mover script in a Windows XP Client computer to fill the PeopleTools PT853 database machine Linux Sever instance.

    I installed Oracle Database 11 g 2 client for 32-bit Windows XP 64 - bit Windows virtual machine and run it successfully.

    In Oracle Linux 5 Server Machine Net Manager:

    Service name: PT853
    Connection type: default database
    "TCP/IP Protocol".
    Host name: 192.168.196.102
    Port name: 1521

    Listener: LISTENER
    Protocol: TCP/IP
    Host: 192.168.196.102
    Port: 1521


    I test the Service PT853 with "SYSADM" username and password "SYSADM". The connection is successful.

    In the Windows XP Client computer, the information in the Net Manager is the same, and the connection is successful as well. Its details are as below:


    NET Service Name: PT853
    Protocol: TCP/IP
    The host of the database Machine name: 192.168.196.102
    Port number: 1521
    Name of the Basic Service: PT853
    Connection type: default database


    This means that Windows XP can connect to Oracle Linux 5 successfully. But in the computer Windows XP Client, Data Mover and application designer cannot open a session in PT853 Instance of database in the Linux Server machine. Its details are below:

    Configuration manager:
    Type of database: Oracle
    The database name: PT853
    User ID: SYSADM
    Connect ID: people
    Connect password: people

    Data Mover:
    Type of database: Oracle
    User ID: SYSADM
    Password: SYSADM

    Application Designer:
    Type of database: Oracle
    User ID: SYSADM
    Password: SYSADM

    When connect Data Mover and application designer, I got the same error:

    ORA - 12154:TNS: can not resolve the connect identifier specified. Invalid user ID and password for the access code.

    According to my understanding, process connection Data Mover and the application designer requires 3 tables in SQL Server: PSOPRDEFN, PSACCESSPRFL, PSSTATUS. I'm not sure the process of connecting to the Oracle database. I checked the database PT853 instance in Linux, and there is only one table "PSDBOWNER" created by the scripts.

    My question is:

    Can any folk tell me the connection process Data Mover and Oracle database application designer? Requires only one table "PSDBOWNER"?

    Thank you.

    Oh my, many mistakes action here. If PSDBOWNER doesn't have a line, it must be solved at the time that the error came out. The replacement by SYSADM first why? Why is complaining already existing SYSADM? Most likely, you HAVE created manually, where you shouldn't.

    Again and again the same story. And again, sorry to say but you should take the basics of Linux training, Oracle training bases and sorry to be hard but reading training as well to read correctly the Peopletools Installation Guide where all required steps are really described in details.

    I don't think anyone can help you across the network in this respect,

    Nicolas.

  • Register proc of pl/sql under the concurrent program

    I'm looking to which a pl/sql package.procedure as a concurrent program.

    I would like to run the concurrent request of user FX_RATES, i.e.
    SQL> l
      1  select fnd.User_id
      2        ,fresp.Responsibility_ID
      3        ,fresp.Application_ID
      4  from   FND_User fnd
      5        ,FND_Responsibility_tl fresp
      6  where  upper(fnd.User_Name)              = 'FX_RATES'
      7* and    upper(fresp.Responsibility_Name)  = 'GL SUPERUSER'
    SQL> /
    
       USER_ID RESPONSIBILITY_ID APPLICATION_ID
    ---------- ----------------- --------------
          1067             50254            101
    So I used the following script to record the simultaneous program:
    declare
      b_OK boolean;
    begin
    
      fnd_global.apps_initialize(1067, 50254, 101);
    
      b_OK := fnd_submit.set_nls_options('AMERICAN');
    
      fnd_program.executable( 'GL_MNH_FX_LOAD'                  -- executable name
                            , 'SQLGL'                           -- application name
                            , 'GL_MNH_FX_LOAD'                  -- short_name
                            , 'GL Mnh Rate Load'                -- description
                            , 'PL/SQL Stored Procedure'         -- execution_method
                            , 'GL_RATE_LOAD.LOAD_FX_MNH_RATES'  -- execution_file_name
                            , null
                            , null
                            , 'US'            -- language code
                            , null);
      commit;
    
      fnd_program.register ( program                => 'GL Mnh Rate Load' -- Name seen on concurrent request screen
                            ,application            => 'SQLGL'
                            ,enabled                => 'Y'
                            ,short_name             => 'GL_MNH_FX_LOAD'
                            ,description            => 'Loads FX Rate file'
                            ,executable_short_name  => 'GL_MNH_FX_LOAD'
                            ,executable_application => 'SQLGL'
    
      commit;
        
      fnd_program.add_to_group('GL_MNH_FX_LOAD'
                               ,'SQLGL'
                               ,'GL Concurrent Program Group' -- Request Group Name
                               ,'SQLGL');
      
      commit;
    end;
    /
    But when I login as FX_RATES I can't view the competitor ask "GL Mnh charge rate.
    When I login with administrator user, I can see the program is defined, i.e. simultaneous-> program-> define.

    So why is the simultaneous program not available in the screen after you select SUBMIT new request when logged in as FX_RATES?

    Hints would be much appreciated!

    After you connect as user FX_RATES, what responsibility you choose? The new concurrent program should be added to the application group that belongs to this responsibility.

    For research through forms, you access the form, press F11, enter the search criteria, and then press Ctrl + F11 to retrieve results.

    PL note this change of basic objects (such as responsibilities and application groups etc.) is not recommended. These changes will not survive an upgrade, as the upgrade process will be back on all these custom changes. It is best to create custom query groups / menus / responsibilities etc. to all custom objects.

    HTH
    Srini

  • VP1 is unable to connect to Data Mover not at the Application Designer

    Hello
    On 8; 42; 15 tools on a win 2003 server, DB oracle 9i:
    SYSADM can connect via Data Mover, but VP1 can not:
    Invalid user ID and password for the access code.

    I don't know password. I've updated with encryption = 0 and password and as sysadm run:

    encrypt_password *;

    in Data Mover.
    Also:
    SQL > select acctlock from the sysadm.psoprdefn where oprid = 'VP1 ";

    ACCTLOCK
    ----------
    0

    What else to check.

    For the moment unable to connect via the application designer. With the same error message.
    Thanks for the help.

    Have you set the connectid and the connectid Word both in configuration manager (pscfg.exe)?
    Are you able to connect to the database with the people of the user? And be connected with people, able to interview PSSTATUS, PSACCESSPRFL, and PSOPRDEFN (prefixed by the name of the owner of the tables)?
    PS user exist? Is there a table PSDBOWNER containing the name of the database?

    Nicolas.

  • "The program issued a command but the command length is incorrect" unable to open a session in windows xp any mode (safe mode, last known

    I am not able to connect to the windows xp system after Windows update. the following error message come on the logon screen after entering the user name and password.

    "The program issued a command but the command length is incorrect.

    I'm now trying the solution.

    try to run in the final... known good configuration does not

    trying to boot into safe mode... does not...

    does not work any other way...

    ... recovery console not able to connect

    repair system does not...

    ..

    only the format option left on my side...

    someone help me...

    Hi HarishLodhi,

    1. what happens when you try to connect to the Recovery Console?

    2 of repair of system are. which option you referring?

    You can try to connect to the Recovery Console by following this link. Subsequently, follow the steps in the link & check if the problem persists:

    Important:  This section, method, or task 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, check the number of the following article: 322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in Windows.

    How to recover from a corrupted registry that prevents Windows XP startup?

    Hope the helps of information.

  • Native SDK is suitable for text-based application?

    I write an application based on the text for Playbook. I read the libraries and learning native SDK for the last days. Now I can't find an easy way to 'draw' texts on the screen of the playbook.

    Please give me some pointers or suggestions.

    If native SDK do not, let me know related libraries or knowledge that I need to look for.

    If the native SDK is not appropriate, what development tool would you suggest me to use? HTML5 or something else? And why?

    I'm new to this forum and new to playbook.

    Thank you.

    Native development kit is not really appropriate, unless you are ready to use the libraries of the add-on as the port of Qt, which is perhaps still a work in progress. The NDK for target now is mainly to games or other applications for which should be essentially generate UI whole 'manually '.

    HTML5 can obviously manage text. So can air. I can't recommend one over the other, or any other environment for you, since "text-based application" is not really describe what you are trying to reach.

  • Error message "no additional applications designed for your device were found".


    Let me google that for you:
    http://CrackBerry.com/no-additional-applications-designed-your-device-were-found

    You can load applications using javaloader, for example. See the developer's guide for a list of all the possibilities.

Maybe you are looking for