Passing connecting string as a parameter
how will be pass a connecting string at runtime as a parameter at parameter from in reports.
The Excel Add-in method requires you to create a module with the essxlvba.txt custom functions in it. This is located under %HYPERION_HOME%\AnalyticServices\bin\essxlvba.txt. Create a VBA module with this file in it.
Start by creating sub procedures that connect, refresh data and disconnect.
Then create a hidden worksheet that lists your member selection list as a range and map your drop-down object to this range.
Create an On-Click event that passes in the drop-downs selected member to the spreadsheet template’s page area.
Then call procedures to connect, refresh and disconnect the spreadsheet template.
This has No-Frills but conceptually it’s the simplest way to do this, I think.
Brian Chow
Similar Messages
-
ISQL*PLUS dynamic reports - how to pass connect string in the URL
When we run dynamic reports thru ISQL*PLUS, does anyone know how
to pass the connect string info in the URL
The following is the code from ISQL*PLUS users guide but it
dosen't show how to pass the connect string
when I tried to pass hr/your_secret_password@dbserver for userid
I got an error msg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<HTML>
<HEAD>
<TITLE>iSQL*Plus Dynamic Report</TITLE>
</HEAD>
<BODY>
<H1>iSQL*Plus Report</H1>
<H2>Query by Employee ID</H2>
<FORM METHOD=get ACTION="http://host.domain/isqlplus">
<INPUT TYPE="hidden" NAME="userid"
VALUE="hr/your_secret_password">
<INPUT TYPE="hidden" NAME="script"
VALUE="http://host.domain/employee_id.sql">
Enter employee identification number: <INPUT TYPE="text"
NAME="eid" SIZE="10">
<INPUT TYPE="submit" VALUE="Run Report">
</FORM>
</BODY>
</HTML>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks
JayThe form you use should work when your change
"hr/your_secret_password" to a valid username, password
and connect identifier like "hr/hr@MYDB". Don't forget to
configure MYDB in your tnsnames.ora file on the machine that has
the iSQL*Plus server.
What was the error you got?
The full URL syntax did seem to go missing from the 9.0.1 doc.
See below for the full syntax. This should be appearing in a
forthcoming FAQ.
- CJ
What syntax can I use to run an iSQL*Plus Dynamic Report?
You can run a dynamic report by entering the report URI in the
location field of your browser, or by making the report server a
link or the action for an HTML form. The iSQL*Plus 9i Release 1
documentation has examples of these.
The general syntax for running a dynamic report is:
{uri}?[userid=logon&]script=location[¶m...]
where uri
Represents the Uniform Resource Identifier (URI)
of the iSQL*Plus Server, for example:
http://host.domain/isqlplus
where logon
Represents the log in to the database to which you
want to connect:
{username[/password][@connect_identifier]}
where location
Represents the URI of the script you want to run.
The syntax is:
http://[host.domain/script_name]
The host serving the script does not have to be
the same as the machine running the iSQL*Plus server.
where param
Specifies the named parameters for the script you
want to run.
Named parameters consist of varname=value pairs.
iSQL*Plus will define the variable varname to equal value prior
to executing the script e.g.
...script=http://server/s1.sql&var1=hello&var2=world
This is equivalent to the SQL*Plus commands:
SQL> define var1=hello
SQL> define var2=world
SQL> @http://server/s1.sql
iSQL*Plus, SQL*Plus and SQL keywords are reserved
and must not be used as the variable names (varname). Note also,
that since variables are delimited by the ampersand character,
there is no requirement to enclose space delimited values with
quotes. However, to embed the ampersand character itself in the
value, it will be necessary to use quotes.
For compatibility with older scripts using the &1
variable syntax, varname may be replaced with the equivalent
variable position as in:
...script=http://server/s1.sql&1=hello&2=world
Note the & is the URL parameter separator and not
related to the script's substitution variable syntax.
Commands and script parameters may be given in any
order in the dynamic report URI. However, please note that if any
parameters begin with reserved keywords such as "script" or
"userid" then it may be interpreted as a command rather than a
literal parameter. -
How to pass a string as a parameter after it has been generated on console
This is wat i want to do...when a sentence has been generated on console(using Bingo.startConversation())..i want to pass this sentence(which is ofcourse string) as a parameter into another method Bingo.reply(???)..wat shud i use in the place of ???
this is my code
public static void main(String[] args) {
Conversation conversation=new Conversation();
Bingo bingo=new Bingo ();
System.out.println("Start");
System.out.println(">>");
System.out.println(Bingo.startConversation());//this line generates a sentence on console//
System.out.println(Bingo.reply(???));-> this is my code
Still didn't use the "Code" tags like you've been asked to do in other postings.
So, still no help. -
Parent Variable Configuration - Passing Connection strings..
I have one parent package and a few child packages. I am using SQL Server 2008 R2.
I want to pass variables from Parent Package containing Connection String and other data to the child package. I created few variables in parent package e.g. ParentConnectionString & child package e.g. ChildConnectionString. I set the child package variables
using Package Configurations > Configuration Type = Parent package variable and map the ChildConnectionString value to ParentConnectionString.
I have put a script component that displays variables value set in the child package from parent package.
In child package i have a Connection of ConnectionManagerType = OLEDB. I have added an expression to set the ConnectionString using the ChildConnectionString.
When i run the parent package during the validation phase, it calls the child package. The script component displays the values are being set in child package from parent package but after that it fails saying - invalid username/password; logon denied.
I suspect that the connectionstring expression are going to be executed at run time and not at validation time.
If i put the complete connection string in ChildConnectionString it works fine.
I am not sure if i am doing anything wrong?It could be that you simply need to put the DelayValidation property to True.
Thing is, when the package starts it validates itself; but at this time the design time connection string property is used, whereas the "real" conn string has been designed to come at a later - runtime, hence you need to set the DelayValidation to true to
make the package not checking the connectivity in advance, and thus successfully start.
Arthur My Blog -
Passing connection object as EJB parameter
I am working on a legacy website which uses stateless session EJB's and runs on
WebLogic 6.1 using JDK 1.3 and Oracle 8.1.6, I am working on upgrading this
application to WebLogic 9.2, JDK 1.5 and Oracle 10.2.
I configured a datasource in WebLogic using the Oracle thin XA driver.
When attempting to run the application I got an error message stating that an
object which is not serializable is being passed as an EJB parameter. I found that
several EJB methods are passing open database connections as parameters so to fix this
issue we should change the code. However, I am reluctant to change the code since I
believe that the reason for passing the connection objects is that the developers
wished to preserve transactions and so any changes might result in many issues in
the application. I have the following questions:
- The code is doing something which is not allowed. So why was this okay in WebLogic
6.1 using the older Oracle oci driver?
- One way to get around this would be to convert the EJB's to POJOS. There are no
container based properties and the only EJB's are stateless session EJB's. The
high water mark for concurrant usage is 40. There is only a single server (no clustering)
What kind of issues would such a
conversion bring?
- Would it be better to convert the EJB's to local interfaces? What kind of issues would
this bring?
Any other suggestions would be very much appreciated.Salma Saad wrote:
Thanks Joe,
Converting to POPJOS from EJB or to local EJB's is changing the code but it limits changes to the logic of the application which could result in unforseen issues.
There is only 1 server and 1 jvm but I get a not serlializable exception which I did not get when running this code on WebLogic 6.2 or 8.1 using Oracle 8.1.6 and 9i .I am getting it now that I am using WL 9.2 and Oracle 10.2.
I looked through all the parameters and everything is a string except for Connection which does not implement serializable. There is a Vector but all the contained objects are strings. Let me know if you have any ideas what I can do to get rid of this, and also why is it happenning in the newer version of WL when it didn't happen before?
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****
at weblogic.rmi.internal.CBVWrapper.copy(CBVWrapper.java:57)
at com.isr.applications.isrinteractive.ejb.sessionbean.user.UserBean_x07h56_EOImpl_CBV.validateLogin(Unknown Source)
at jsp_servlet._admin.__validatelogin._jspService(__validatelogin.java:187)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)Hi. I looked at the code throwing this exception, and
it's in a whole 'nother area of the server, nothing to
do with JDBC or EJBs as such. It's odd too, because it
seems to have already verified that whatever object
it's dealing with is a serializable object...
I recommend you're opening an official support case
about this exception, and maybe they'll want help
reproducing it...
Joe
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.isr.applications.isrinteractive.servlets.reports.SessionFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3212)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.io.NotSerializableException: java.lang.Object
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rmi.extensions.server.CBVOutputStream.writeObject(CBVOutputStream.java:84)
at weblogic.rmi.internal.CBVWrapper.copy(CBVWrapper.java:49)
... 20 more -
Cmdlnlauncher for sequences throwing connection string error..
Hi All,
I have Hyperion suite v11.1.1.3. I am trying to use cmdlnLauncher.bat to schedule few rules and sequences. I was able to do it for rules however for sequences, I am getting error.
My syntax:
cmdlnLauncher.bat -p:password -S<server name> -Uadmin -sAct2011
Error: "Connect String missing or has an invalid format. Please specify a valid connect string (Server/App/DB)"
As the -f<rtp file> is ignored for sequences, I am not sure how to pass connection string to the wizard.
Any suggestions please..
Kind regards,
AnkitThanks for Reply
Excel SOurce give me below Error
TITLE: Microsoft Visual Studio
Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from variable" access mode, in which the entire SQL command is stored in a variable.
Try as below,
declare @sql varchar(1000), @fq varchar(260)
select @fq = ?
select @sql = 'SELECT * FROM OPENROWSET(''Microsoft.ACE.OLEDB.12.0'',''Excel 12.0;Database=''' + @fq + ''', ''SELECT * FROM [sheet$]'')'
---print @sql
insert into TEMP
exec(@sql)
OR
declare @sql varchar(1000), @fq varchar(260)
select @fq = ?
select @sql = 'SELECT * INTO TEMP FROM OPENROWSET(''Microsoft.ACE.OLEDB.12.0'',''Excel 12.0;Database=''' + @fq + ''', ''SELECT * FROM [sheet$]'')'
---print @sql
exec(@sql)
Regards, RSingh -
Report Designer odbc connection string for data source using a parameter
I am using stand alone report designer 3 for the present and have a question/problem regarding the odbc connection string for MySQL when setting up the data-source
I need to be able to enter a parameter which is the database name i.e. BOE-201401 or say BOE-201312 etc from a list of databases the user can choose from.
at present the odbc connection string points to BOE-201402
the connection string is at present Dsn=Development Server for MYsql;description=MYSQL;server=ldndw01;database=BOE-201402;port=3306
my parameter has the name BOE_DATABASE
and in an expression it is as such
=Parameters!BOE_DATABASE.Value
I want to point the datasource for the report to the parameter value before the user sees the report.Hi Leslie,
Based on your description, we want to design a report with a dynamic DataSource connection string. There are the basic steps below for your reference:
Create report with static database.
Change data source to report parameter.
Send new database connection string as a report parameter.
More detail information, please refer to the following blog: Dynamic Database in SSRS 2008.
http://haseebmukhtar.wordpress.com/2011/11/09/dynamic-database-in-ssrs-2008/
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
How to pass a string longer than 30 to an Export Parameter in a PI sheet ?
Hi All,
I'm trying to set up a process instruction in a PI sheet that calls a URL web page.
I found the function module CALL_BROWSER and tested it in SE37 and it works fine.
I created a process instruction to call this function module and pass parameters to it.
Everything works if the URL is short. For example:
0010 PPPI_BUTTON_TEXT Show URL
0020 PPPI_FUNCTION_NAME CALL_BROWSER
0030 PPPI_FUNCTION_DURING_DISPLAY allowed
0040 PPPI_EXPORT_PARAMETER URL
0075 PPPI_STRING_CONSTANT http://www.google.com
This is where I ran into a roadblock.
The characteristic PPPI_STRING_CONSTANT is only 30 characters long.
I can't figure out how to pass an export parameter longer than 30 characters.
I have also tried loading up multiple PPPI_VARIABLE(s) with the idea of some how combining them into a single long string that I can pass, but no luck figuring out how.
Any help would be greatly appreciated
Kind Regards
MichaelThanks Dario, this is good information, but it does not directly solve my problem.
I think I have figured out an approach, but was hopeing someone else had a standard solution.
If I don't here something soon, I will try the following:
Create a new function moduel as a shell or wrapper that calls the standard FM RUN_Browser.
My shell will have 5 input parameters URLP1 thru URLP5.
I can then pass a long URL to my shell in 5 parts.
Inside my shell, the 5 parts will be joined up into 1 long string and passed on to the URL parameter in RUN_Browser.
If anyone has a better idea, please let me know.
Kind Regards
Mike Rupp -
I can't pass empty string as column of Table Valued Parameter.
Hello.
I have stored procedure which accept TVP with columns of 'sql_variant' type. And I have C++ application which call this stored procedure.
When i pass some non-empty string as sql_variant from my application - all works fine.
But when I need to pass empty string ("") as sql_variant - I get following error:
"OLEDB hr = 0x80040e14
#0: OLEDB provider error 3621 "The statement has been terminated."
#1: OLEDB provider error 8062 "The data for the table-valued parameter 1 doesn't conform to the table type of the parameter."
#2: OLEDB provider error 8046 "The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Table-valued parameter 0 (""), row 1, column 1: The supplied length is not valid for data type sql_variant.
Check the source data for invalid lengths. An example of an invalid length is data of nchar type with an odd length in bytes."
Could you please help me deal with that issue?
Thanks,
VitaliyDear Vitaliy,
Thank you for your question.
Based on my understanding of your question, the issue is related with passing SQL_VARIANT data type in C++ application using Microsoft OLE DB Provider.
As we can see from http://msdn.microsoft.com/en-us/library/ms173829(v=sql.100).aspx:
ODBC does not fully support sql_variant. Therefore, queries of sql_variant columns are returned as binary data when you use Microsoft OLE DB Provider for ODBC (MSDASQL). For example, a sql_variant column that contains the character string data 'PS2091'
is returned as 0x505332303931.
According to above statement, as you are using OLEDB provider for ODBC with sql_variant in your application, it is not fully support. Seems there are some conversion failure within the Stored Procedure calling. You may consider to adjust your application
slightly to use other commonly supported data types which also fits your application requirements.
I listed some more information regarding sql_variant below for your reference:
A column of type sql_variant may contain rows of different data types such as int, binary and char values.
A sql_variant data type must first be cast to its base data type value
before participating in operations such as addition and subtraction. You can find the conversion details in "Comparings sql_variant Values" part.
Below types of values cannot be stored by using sql_variant:
varchar(max)
varbinary(max)
nvarchar(max)
xml
text
ntext
image
timestamp
sql_variant
geography
hierarchyid
geometry
User-defined types
Hope it will be helpful.
Thank you!
Best Regards,
SQL Team - MSFT -
Want to connect local SQLPlus without passing SID/connecting string.
Hi
On my network there are many databases and many several machine. On some database host machines when I pass user/password they connect locally but other wont unless I provide connecting string i.e. user/password@connection_string.
How can I make my machines to connect locally if I pass just pass user/password as I want to install StatsPack, it change user within installation and log out as it only pass username/password not the connection string.
Wishes
Jawadtry with TWO_TASK
$ export TWO_TASK=lsc62.ex.zkb.ch
$ sqlplus scott/tiger
SQL> select global_name from global_name;
LSC62.EX.ZKB.CHMessage was edited by:
Laurent Schneider
well, this works only in Unix, so first, upgrade your plateform to Unix before setting this variable -
Connection string parameter enlist
What is the difference between enlist=true and enlist=dynamic (used in connection string)?
Paul,
I recommend option #1 for the reasons you list in your post. You've already tested against this configuration, user load is not an issue with this, etc.
Distributed transactions in this context refer to transactions that span multiple resources and are controlled by something like the Microsoft Distributed Transaction Coordinator. You can search on "MTS 2.0, overview" in the Visual Studio integrated help to get more information on MTS. Basically I would say you don't need it otherwise you would probably already be using it.
Anyway, hope that helps a bit,
- Mark -
## A Simple VB Client which passes a String as parameter ##
Hello Everybody,
I am looking for a simple VB client that should be able to pass a String
(not FML) to a tuxedo service. I have already seen the FML example. Help
would be highly appreciated.
Thank you
Nadeem
@8563Hello,
Please refer to my posting "Re: VB6 client and Tuxedo".
The sample can be easily modified for STRING instead of FML.
HTH
regards
MS -
WorkflowCA: TNS Connection String format not recognised
When I launch the scripts /wfinstall.csh, I get following error message:
[oracle@blmcqb install]$ Workflow Configuration Assistant - Linux
4
Parameter "wfdir" = /oracle/product/10.2.0/MPROD/wf
Parameter "orahome" = /oracle/product/10.2.0/MPROD
WorkflowCA: /oracle/product/10.2.0/MPROD/wf/install/workflow.log
WorkflowCA:
WorkflowCA: Workflow Configuration in progress...
WorkflowCA: Thu Mar 08 14:51:26 EST 2007
WorkflowCA:
WorkflowCA: Screen width -1024-, screen height -768-
WorkflowCA: TNS Connection String format not recognised
WorkflowCA:
WorkflowCA: Graphics User Interface mode
WorkflowCA:
WorkflowCA: Thu Mar 08 14:51:58 EST 2007
WorkflowCA: Invalid connect methodTWO_TASK=]
WorkflowCA: Terminating..
However, I can access the database without any problem:
[oracle@blmcqb install]$ tnsping OWBLAB
TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 08-MAR-2007 15:01:24
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = blmcqb)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = OWBLAB)))
OK (0 msec)
[oracle@blmcqb install]$ sqlplus sys/rootpasswd@owblab as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Mar 8 15:02:05 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> select name, open_mode from v$database;
NAME OPEN_MODE
OWBLAB READ WRITE
Does any expert has any idea?I got the same error. Then I gave whole string to ./wfinstall and then the Installation pass ok!
Like: (DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = rubik.my.domain)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = rubikdb.my.domain)))
Best Regards Antti -
Need PL/SQL Code to get Oracle connection string
Hi
Could you please give any solution to below requirement?
Requirement :
I have an existing pl/sql program (Registered as concurrent Program) in which i am calling a "C" Program. The "C" program expects a parameter to pass the value of oracle connection string (userid/pwd@instance). The C Program takes the connection string to connect to oracle and manipulate data.
Question. How will I get Oracle userid,pwd and connection string being in PL/SQL Session so that it will run for every instance i move the code in.
Note :
1.) We have limitations to call another concurrent program to fetch these data.
2.) We cannot hard code the value in the program because of compliance issue.
Any example of code will help.
Thanks in Advance.
Cheers
SamarHi,
Check the below link, It might help you.
http://download.oracle.com/docs/cd/B13789_01/appdev.101/b10802/d_obtool.htm
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adgsec04.htm
Twinkle -
Passing Inner class name as parameter
Hi,
How i can pass inner class name as parameter which is used to create object of inner class in the receiving method (class.formane(className))
Hope somebody can help me.
Thanks in advance.
PremNo, because an inner class can never have a constructor that doesn't take any arguments.
Without going through reflection, you always need an instance of the outer class to instantiate the inner class. Internally this instance is passed as a parameter to the inner class's constructor. So to create an instance of an inner class through reflection you need to get the appropriate constructor and call its newInstance method. Here's a complete example:import java.lang.reflect.Constructor;
class Outer {
class Inner {
public static void main(String[] args) throws Exception{
Class c = Class.forName("Outer$Inner");
Constructor cnstrctr = c.getDeclaredConstructor(new Class[] {Outer.class});
Outer o = new Outer();
Inner i = (Inner) cnstrctr.newInstance(new Object[]{o});
System.out.println(i);
}
Maybe you are looking for
-
Creation of report with the help of report painter
Dear Experts, I need report painter material, if any body have pls farward to me. my intension to create controlling report with the help of report painter. I am ready to award full points. Thanks in advance Regards avudaiappan
-
How To Display User Photo (jpegphoto attribute) From OID LDAP Entry
Hello everyone, I've spent a few days looking for a solution to this problem with no luck. I have a PLSQL database package that generates an organisation chart of users. It works fine but I am struggling to retrieve the users photo. I have tried link
-
Dear All In the report MB51 Vendor and customer numbers are displaying. But my client wants the description along with the number. I have checked the layout .But description is not their. Kindly kind me to achieve. Shobana
-
Hi I am importing some files from one location to another location say it as "D" drive to "E" drive.On clicking import button in my application the files are moving perfectly. My problem is which file is moving i want to know...something like agent..
-
Startup error message "system cooling fan not working" (90B)
My envy15 running window 7 gives me this message on statup with warnings of interntant shutdowns or system damage. The fan is indicated as 90B This question was solved. View Solution.