Passing user parameters to groovy script
From OIM 11gr2 ,I need to create users into LDAP through OID connector OID-11.1.1.6.0.
After creation , i need to pass user id and other parameters to groovy script to run a command on target system.
How do i pass these parameters to groovy script. Please assist
Hi,
I am calling the shell script from concurrent program and below is the log file of the concurrent program.
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
KORONT_041_SH module: KORONT - Daily Item Master Update
+---------------------------------------------------------------------------+
Current system time is 29-JUN-2011 10:09:35
+---------------------------------------------------------------------------+
REQUEST_ID: 68510795
USER_ID: 4219
PDC: 85
Item Number:
KORDC: 124
PDCSET: 1100000003
last_updated_in_hours: 24
EMAIL_ID: [email protected],[email protected]
SQLPATH: /e381/oracle/asodev01appl/custom/motont/1.0.0/sql/
RPTDIR: /e381/oracle/asodev01comn/admin/out/ASODEV01_asoprdb2
RPTFILE: o68510795.out
Table truncated.
*Enter value for 6: User requested Interrupt or EOF detected.*
Table truncated.
old 15: AND ic.organization_id = &&4
new 15: AND ic.organization_id = 1100000003
0 rows created.
Input truncated to 9 characters
old 8: AND organization_id = &&4
new 8: AND organization_id = 1100000003
0 rows created.
End of SQL
No record.
+---------------------------------------------------------------------------+
Executing request completion options...
+------------- 1) PRINT -------------+
Printing output file.
Request ID : 68510795
Number of copies : 0
Printer : noprint
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 29-JUN-2011 10:09:38
+---------------------------------------------------------------------------+Regards,
Sreekanth
Similar Messages
-
Pass User Parameters between Forms and Reports...?
Hi,
I have been trying to pass user parameters from forms to reports using
RUN_REPORT_OBJECT. I am able to run the report from the form, but still don't know how to pass user_parameters. Does anyone know how to do this?
Thanks,
ABYou can use SET_REPORT_OBJECT_PROPERTY with the "REPORT_OTHER" parameter
The following example passes 3 parameters to the report:
SET_REPORT_OBJECT_PROPERTY(pt_report_object_id, REPORT_OTHER, 'paramform=no p_param_1='||pc_param_1||' p_param_2='||pc_param_2); -
Passing User Parameters through Run_Report_Object
hi,
How to pass multiple user parameters through run_report_object.example i have to pass 20 parameters, have i write 20 statements? is there any way to come in single statement.i am using Forms 6i.
thks in advance,A parameter list can be the second parameter of RUN_REPORT_OBJECT,
rjob := RUN_REPORT_OBJECT(rep_id,paramlist_id);
Gerald Krieger -
Passing user parameters in interface
Hi,
How do I implement interface that accepts user parameters?Thanks for the response. :).
Hereunder is what I want to achieve:-
I have written two interfaces to do the loading from table (SQL) and file (txt), schema definition for both is the same, and data is different. The target is same for both.
I want to make the interface generic by passing an input variable @i
if @i = 1 then load from table
if @i = 2 then load from file
Is it achievable in ODI? -
Passing Multiple Parameters to SQL Script from a Shell Script
Hi Friends,
I have SQL script which accepts 6 parameters.
I am calling this from a shell script as shown below:
sqlplus -s ${ORACLE_ID} @${SQLPATH}KORONT_041.sql ${USER_ID} ${PDC} ${item_number} ${KORDC} ${PDCSET} ${last_Updated_in_hours} Out of the six parameters, item_number is not a mandatory parameter.
When i pass all six parameters, there is no issue.
But when i leave item_number blank, i am getting the below error
Enter value for 6:
User requested Interrupt or EOF detected.Based on the error, it seems that the NULL values for item_number is ignored and SQL*PLUS is waiting for one more input from user.
How can i overcome this issue?
Regards,
SreekanthHi,
I am calling the shell script from concurrent program and below is the log file of the concurrent program.
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
KORONT_041_SH module: KORONT - Daily Item Master Update
+---------------------------------------------------------------------------+
Current system time is 29-JUN-2011 10:09:35
+---------------------------------------------------------------------------+
REQUEST_ID: 68510795
USER_ID: 4219
PDC: 85
Item Number:
KORDC: 124
PDCSET: 1100000003
last_updated_in_hours: 24
EMAIL_ID: [email protected],[email protected]
SQLPATH: /e381/oracle/asodev01appl/custom/motont/1.0.0/sql/
RPTDIR: /e381/oracle/asodev01comn/admin/out/ASODEV01_asoprdb2
RPTFILE: o68510795.out
Table truncated.
*Enter value for 6: User requested Interrupt or EOF detected.*
Table truncated.
old 15: AND ic.organization_id = &&4
new 15: AND ic.organization_id = 1100000003
0 rows created.
Input truncated to 9 characters
old 8: AND organization_id = &&4
new 8: AND organization_id = 1100000003
0 rows created.
End of SQL
No record.
+---------------------------------------------------------------------------+
Executing request completion options...
+------------- 1) PRINT -------------+
Printing output file.
Request ID : 68510795
Number of copies : 0
Printer : noprint
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 29-JUN-2011 10:09:38
+---------------------------------------------------------------------------+Regards,
Sreekanth -
Does Azure Python API create_virtual_machine_deployment allow passing user data/script to a Linux VM?
AWS EC2 python API allows me to pass user proprietary data or script when I try to create a EC2 linux based VM, e.g.
ec2_conn.run_instances(image_id, key_name=vpc_name, instance_type=vpc_size, subnet_id=subnet_id, security_group_ids=[sec_group.id], private_ip_address=from_private_ip, disable_api_termination=True, user_data=my_user_data)
For Azure python API create_virtual_machine_deployment, does it have the similar thing?
I noticed that there is --custom-data in the CLI, but is there such an option using Python API?
If yes, could someone provide an example code?
Thanks in advance...Hi,
In Azure, this feature is called
custom data. Currently, you can inject custom data into an Azure VM by using the
Windows Azure command-line tools (--custom-data).
I assume that it is not supported in Python API. You can use “custom_data=xxx”
within “create_virtual_machine_deployment” to check if it works.
If it is not yet available, please submit your requirement in Azure feedback below:
http://feedback.azure.com/forums/34192--general-feedback
Best regards,
Susie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Getting problem with running RWBLD60 with User parameters
Hi All,
I am trying to run a report using rwbld60 from command prompt which has input parameters
I tried like this but it didnt work out
rwbld60 module=reportname.rdf userid=scott/tiger@orcl destype=file desformat=pdf
desname=report_out.pdf parameterform=NO params=parms_1 traceopts=trace_prf tracemode=trace_replace
tracefile=trace.txt
Can any one please tell me how i can pass user parameters for rwbld60
Thanks,
Amaractually, i do my FYP on bluetooth chatting...
and there will be more than two emulators running at the same time..
one of my frens said that if u want to run more than one emulator u just simply click on run button..
and it will appear on the screen.. -
SQLPLUS Acitivity in process flow Input parameters to the script
I have a sqlplus Activity in the process flow. In the script section I have a update statement which has a where clause where I need to pass a date field as input paramter to this script to compare and update the records.
Is there a way to pass Input Parameters to the script.
update test
set last_name = 'TEST'
where trunc(begin_date) = :begin_date;
Begin_date is a variable in my process flow which I need to pass to this script.
Any ideas as to how I can accomplish this.
Thanks in advance.You can Create a procedure of the Update statement with one input paramenter like
Create Or replace procedure Update_test ( p_begin_date date )
IS
update test
set last_name = 'TEST'
where trunc(begin_date) = p_begin_date;
End;Then call this Procedure in the Process Flow and give input parameter from PF variable.
Cheers
Nawneet -
Passing user defined parameters in oracle reports thru command line
Hi All
We are currently using Reports 6i with Oracle 10g 10.2.0.4.0
I would like to know that is it possible to pass user defined parameters values while calling report from command line.
For Example: I am using following coding to call report from command line.
for /f "tokens=1-3 delims=/ " %%a in ('date /t mm/dd/yyyy -1') do (
set mm=%%b
set dd=%%a
set yyyy=%%c)
rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%.pdf desformat=PDF BACKGROUND=NO BATCH=YES
The report contains some user defined parameter which is using in where condition of reqport query.
Select * from banks
where id = :Bank_ID
Now I want to Pass value for :Bank_Id from command line (like we pass parameter list while calling report with run_product), how it is possible?
Thanks
HassanHi guys
Fortunately I am able to perform the required task as I just added the report parameter field as follows:
rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%%h%%mi%%ss%%ts%.pdf desformat=PDF BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log bank_id='MCB'
bank_id is the report parameter using in where clause.
Regards,
Hassan -
Passing parameters from shell script to OWB process flow
Hi all,
I am running OWB process flow (using the template script provided by oracle) and i want to pass two date parameters as shown below:
sqlplus -s $SQL_USER/$SQL_PWD@$ORACLE_SID @$HOME_DIR/src/vmc_oem_exec_script.sql OWB_OWNER VMC_POST_DW_PF_LOC_SIT PROCESS VMC_NM1_PORT_MAIN "," "P_DATE_FROM=$DATE_FROM,P_DATE_TO=$DATE_TO"
How do i catch those values in process flow and pass those to mappings in Process flow?
Do i need to create PF variables with same names or any name will do?
Thanks in advanceThis document is explaining how to pass data between activities in process flow.
I am passing parameters from a shell script.
Any ideas,how to pass parameters from shell script and then initialize the process flow variables based on those values and then pass them further to mappings.
Thanks -
Passing selected members from excel add-in as parameters to calc script
<p>Hi,</p><p> </p><p>I m trying to pass parameters to a function in a calcscript(or member formula). The parameters will be members of adimension selected by users(from Excel add-in or Web analysis) atthe run time.</p><p> </p><p>For example, a user select years FY04,FY05,FY06 then I wantthese three years to be passed as parameters to my function.</p><p> </p><p>How can this be achieved in Excel and Web analysis?</p><p> </p><p>Hope to get a reply soon.</p><p> </p><p>Thanks,</p><p>Garima.</p><p> </p>
<p>Thanks Bill and Tim.</p><p> </p><p>I checked the link sent by Bill but it doesn't seem that itwould be a help to me.</p><p>I checked the properties and methods mentioned.</p><p>Do you think it would be of use according to my requirement?</p><p> </p><p>Is there any other way or workaround for this?</p>
-
Passing parameters to SQL Script
I'm trying to pass a parameter to SQL Script like
sqlplus hr/my_password @myscript.sql King
but everytime sqlplus is started the system is asking me for this parameter.
I would like too use this principe in combination with forms. (host user/passwrd@test @test.sql King)
kind regards,
MenkYour variable name in SQL script must be called &1.
Eg. SELECT value FROM table WHERE name = '&1.' ;
So, if you have more than one argument, the followed must be &2. &3. ...
If you use another name, Oracle always requests the value.
I hope help you -
Can we pass paramters in the partition script
Can we pass parameters in the partition script in Essbase. Where the parameters are read by a windows batch file which is executed in windows environment.
Our Business requirement, the business will key in the parameters ie(Month and Year) in a partition script dynamically.
We are scheduling the partition script through Windows Batch file.
So is it possible to create a parameter file in windows and pass these parameters to windows batch file.It should be dynamically mapped with partition Script.If possible,can anyone provide sample script to show how it works.Thank You Wills. The requirement is the users want to change the mappings in the partition script, but users are not having any access to the EAS. They want the mappings to be dynamically changed in the partition script on adhoc basis.
Admin can change the values to the substituion variables, but the requirement is users wants to change the mappings.
So they asked for the parameter file. -
How to pass a variable into sqlplus script from file
here is my problem :
I have plenty of sql scripts to run. So every time I need to run sqlplus /nolog @scriptxx.name<enter> and then type login<enter>, password<enter>, second login<enter> , second password<enter> - and when it finishes again from the beggining with next one...
I am fed up with passing these parameters every time. I would like to create a file (files?) with these logins and passwords (located f.ex. in directory where I run the script) then tells, in some way, to my scripts that answers for their questions is inside this file(s).
Is there any way to do it in such a way ?
something like: accept DataUser char %read from file user1.txt without my inerteraction%
ps.
I cannot add directly these parameters to script because I need to run them on different servers (DEVs and PRODs) and every server has different users and passwords
KP>Actually the START command would resolve the issue, in conjunction with passing parameters and DEFINEs in a sensible manner.
DEFINE dathasb = '&1'
ACCEPT dathasb char prompt 'etc...'
When dathasb already has a value, ACCEPT won't prompt.
Too many people start hacking and don't use the power of Oracle because they don't the needful : Reading the documentation.
Other than that obviously the series of scripts needs of course to be re-engineered.
Asking interactively for a password .... even 20 years back we already didn't do this anymore.
Of course that was the time when exporting anything beyond the VAX 11/750 to Eastern Europe was prohibited because of US export regulations ;)
You could store the passwords in Oracle Wallet and be done with it.
You could use OS authenticated accounts and be done with it.
But then you still didn't post a version, even not when requested.
Sybrand Bakker
Senior Oracle DBA -
Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2
Hello,
I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix) and passing those parameters. I am using SSRS 2008 R2.
Here's my scenario:
I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:
Active
Term
Leave
Total
128
88
121
United States
110
80
85
New York
65
30
57
Manhattan
10
6
9
Buffalo
20
23
4
Albany
35
1
44
Texas
45
50
28
Dallas
40
30
22
Houston
5
20
6
France
18
8
36
Centre
18
8
36
Blois
7
2
8
Druex
6
1
15
Tours
5
5
13
I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding
for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).
While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York Status = Active. But the remaining parameters (Country
and City would be null). I know Country doesn't need to be Null in this case.
My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
As a crazy work-around (I think) I can put in the Where of the query something along the lines of: this:
and (a.Country in (@paramCountryCode) or NULL in (@paramCountryCode) )
and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.
Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if
I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?
All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.
Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?
Thank you for the help.
~JHi Jenna_Fire,
According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
multiple values for parameter Country, State and City in both reports.
2. In corresponding textbox, pass appropriate parameters in go to report Action.
4. Filter data in detail report (in where clause or using filters).
5. Save and preview. It looks like below:
Reference:
Using Parameters to Connect to Other Reports
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
Maybe you are looking for
-
I have a lot of music on my ipod from CD's I own. I want this music on my new iphone 4s. Because music was not purchased via itunes, it will not allow me to transfer the music. Is there a way around this?
-
Hi, Is it possible to add a background image for a chart. If so, can anybody please explain? Thanks in advance. Fred
-
Onedrive renames library folder and can not be reverted
Hi, I have been trying to reverse the effect of moving the OneDrive folder into a new location. I somehow chose the Documents folder under Libraries, and now the it has been renamed to OneDrive and I cannot access my documents and I dont know where t
-
NEF files will not download into PSE 9.
Just bought a Nikon D7000 but the NEF files are not compatible with PSE 9. I downloaded Camera Raw 6.4, which took a long time due to interuptions so am not sure it loaded properly. Any other ideas out there to make this work? Nikon admits they ch
-
Hi, as far as i know, once you license the product, we can not roll back that ( Unlicense that) during installation phase or after installation, if you did it. so, if dba mistakenly licensed one product, which is not in the license agreement and it g