Sponsored Content
Top Forums Shell Programming and Scripting Passing arrays to oracle from unix Post 25847 by edog on Tuesday 6th of August 2002 12:00:05 PM
Old 08-06-2002
someone I work with got around this problem by passing a delimited string to the oracle procedure and then parsing the string in the proc, just an idea, hope it helps

-Ed
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell arrays in oracle stored procedure

Is it possible to pass unix shell arrays in Oracle stored procedure? Is yes, how? Thanks (6 Replies)
Discussion started by: superprogrammer
6 Replies

2. Shell Programming and Scripting

Passing arrays to oracle from unix

Hi all... Im looking to pass the contents of a simple file to Oracle so that it can be stored in a database table. The best way i can think of to avoid overhead is to loop through the contents of the file and store the data in a bash array. then the array can be passed to SQL Plus where... (4 Replies)
Discussion started by: satnamx
4 Replies

3. Shell Programming and Scripting

passing oracle parameters back to Shell

Hi All, Does anyone have any solutions for passing back multiple variables back to the SHELL from a call to an ORACLE procedure: eg #username='scott' #password='tiger' #database='orcl' username='ITGCD03D03' password='tC5epIew' database='ITGCD03D' sqlplus -s... (4 Replies)
Discussion started by: satnamx
4 Replies

4. Shell Programming and Scripting

Passing parameters form unix to Oracle procedure

Hi, I have screen which was desined in PL/SQL Catridges in apps. In that screen some enterable fields these values r the passing parameters to create value sets, functions, menus etc in apps by using front end screens. Now in that screen i have a button. when i click that button it have to... (0 Replies)
Discussion started by: rajasekharamy
0 Replies

5. Shell Programming and Scripting

Passing arrays between functions

Hi, I have a function that hold 3 arrayies. I need to pass them to another function as an input, for further use Could you please explain how to do that. Thanks (5 Replies)
Discussion started by: yoavbe
5 Replies

6. Shell Programming and Scripting

passing variable to oracle procedure

using the script below I want to pass a parameters thorugh my sql call(@/unixsxxx/xxxx/helpenv.sql emptab ) as input into an oracle procedure xxxx_package.proc1(%1,emptab); . I tried %1 but it does not work. Any suggestions. #!bin/ksh set -x # export... (0 Replies)
Discussion started by: TimHortons
0 Replies

7. UNIX for Dummies Questions & Answers

Help Passing An Oracle parameter to a unix shell.

I have an Oracle concurrent program that I'm passing a parameter to a unix shell script. An example value of the Oracle parameter is PO_TOP. The Oracle parameter represents the unix env var PO_TOP, meaning, on the unix side there is env var called PO_TOP (ex value: /oradev/apps/po/11.0.3/). My... (7 Replies)
Discussion started by: Mark_Wright
7 Replies

8. Shell Programming and Scripting

Passing unix variable to oracle parameters

Please help me how to pass some unix vairable to oracle. I have used below , but not displaying passed (inval) value. calling() { sqlplus -s $1/$2@$3 <<EOF begin exec call_sql($4); end; exit EOF } calling user pwd inst value1... (17 Replies)
Discussion started by: Jairaj
17 Replies

9. Programming

Oracle Variable Passing Test

Hi, I am trying to get the oracle variables and pass the values in sql placed in procedure. VARIABLE vstat='ASDS,FGDS,VCGD,VCXC' Query : select distinct dept from College where section in ('C','D') AND CODES ='' AND NAMES IN ('RAJ','SAM'); I want CODES values to be taken from vstat... (1 Reply)
Discussion started by: Perlbaby
1 Replies

10. Shell Programming and Scripting

Passing variable from file to Oracle

cat a1 scott robert tom test script : #!/usr/bin/ksh for NAME in `cat a1` do VALUE=`sqlplus -silent "nobody/bobody01@testq" <<END set pagesize 0 feedback off verify off heading off echo off select username from dba_users where username=upper('$NAME'); END` if ; then echo... (3 Replies)
Discussion started by: jhonnyrip
3 Replies
XtSetLanguageProc()													       XtSetLanguageProc()

Name
  XtSetLanguageProc - register the language procedure called to set the locale.

Synopsis
  XtLanguageProc XtSetLanguageProc(app_context, proc, client_data)
	   XtAppContext app_context;
	   XtLanguageProc proc;
	   XtPointer client_data;

Inputs
  app_context
	    Specifies the application context in which the language procedure is to be used, or NULL.

  proc	    Specifies the language procedure.

  client_data
	    Specifies additional data to be passed to the language procedure when it is called.

Returns
  The previously registered language procedure.

Availability
  Release 5 and later.

Description
  XtSetLanguageProc() registers proc as the language procedure that will be called (with client_data) from XtDisplayInitialize() for all sub-
  sequent displays initialized in the application context app_context.	The language procedure is called by XtDisplayInitialize() (in Release
  5) in order to determine the language string and perform whatever localization is required by an internationalized application.

  If  app_context is NULL, the specified language procedure is registered in all application contexts created by the calling process, includ-
  ing any future application contexts that may be created.  If proc is NULL a default language procedure is registered.

  XtSetLanguageProc() returns the previously registered language procedure.  If a language procedure has not yet been registered, the  return
  value is unspecified but if it is used in a subsequent call to XtSetLanguageProc(), it will cause the default language procedure to be reg-
  istered.

  Note that the "default" language procedure is not registered by default; you must call XtSetLanguageProc() with a proc of NULL to  register
  this default procedure.  If XtSetLanguageProc() is never called, XtDisplayInitialize() determines the language string by the same procedure
  it used prior to Release 5.  See XtDisplayInitialize() for more information.

  See the "Background" section below for a description of the default language procedure.  See XtLanguageProc(2) for an explanation of how to
  write a language procedure.

Usage
  Most internationalized applications should call XtSetLanguageProc() directly before calling XtAppInitialize().  The default language proce-
  dure should be adequate for applications that use only the internationalization facilities provided by ANSI-C and Xlib.

Example
  A client wishing to use this default procedure to establish locale can do so as in following example:

	 Widget top;
	 XtSetLanguageProc(NULL, NULL, NULL);
	 top = XtAppInitialize( ... );

Background
  The default language procedure does the following:

  o  Sets the locale according to the environment.  On ANSI C-based systems this is done by calling setlocale(LC_ALL, language).  If an error
     is  encountered  a warning message is issued with XtWarning(), where language is the language string determined by XtDisplayInitialize()
     and passed to the default language procedure.

  o  Calls XSupportsLocale() to verify that the current locale is supported.  If the locale is not supported, a  warning  message  is  issued
     with XtWarning() and the locale is set to "C."

  o  Calls XSetLocaleModifiers() specifying the empty string.

  o  Returns the value of the current locale.  On ANSI-C-based systems this is the return value from a final call to setlocale(LC_ALL, NULL).

See Also
  XtDisplayInitialize(1),
  XtLanguageProc(2).

Xt - Locale Management													       XtSetLanguageProc()
All times are GMT -4. The time now is 08:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy