Pass Parmeter To Sql Data Base Procedure
Hi,
i used JDEVADF_11.1.1.4.0
I have two fields Date type on the Page, and I have a Procedure database gives difference between two dates, on the road to send the values of the two date , and give me the number of days
I make a call the Procedure in AppModuleImpl
How can I send the parameter two dates from the screen to data base Procedure , for run the Procedure
Hi,
Bind the dates value to the bean and call the IMPL method with help of these value passed as argument .
The IMPL method must exposed as client interface so that bean can access that method.
@Gunanidhi
Similar Messages
-
Extracting data from ms sql data base
Hi Experts,
we have a requirement of extracting data from MS SQL data base,could any one pls help me with the approach to extract data
from ms sql data base(actually we have to extract the data from PRIMAVERA i.e the back end data base is MS SQL data base and the application is built on java)so we have got two options one is using ud connect and the other one is using PI(XI).i came to know the two approach have based on differenct methods,pull and push mechanism.and also for PI,it can be extracted using
real time data acquisition property in dtp and for db connect it don't support real time data acqusition.
so pls guide me,which mechanism would be feasible to extract the data from PRIMAVERA to SAP BI.and can you suggest with methods is more efficient.
Thanks in advance.Hi thanks for the reply,
initially we tried with db connect,but our Bi system(oracle) is mount on unix OS and the Primavera(MS Sql DB)is on windows OS.so we could not found the data base shared library once if the DB client is installed on the application server.so we are working around with the other possibilities,so can you suggest me which could be favarable in our case.
Thank You. -
Im trying to build user expiration into my registration form, but I cant get the form to send back the date registering.
in my data base i have tried every thing from timestamp to datetime. I can get a timestamp but it is not functioning with the expiration?just have a look at my tutorial Login tables: installation & configuration where the required column attributes are explained and where you can obtain a fully functional SQL dump for a typical ADDT "login" and (optionally) "login_stats" table.
BTW, "expiration" will have to be an "int" column.
Cheers,
Günter -
Related To My SQL Data Base Resultset Coonectivity
Hi
I want to open Crystal report through Java 1.5 Using JAVA Beans class.
Data Base: My SQL, JDBC connectivity
Class Names: CrystalRepoty(For Viewing The Report)
Bean Class(WorkinfoDataSourceBean): For Data Base Connectivity
When i open the perticular report its gives error.
Error Detials
Failed to open connection (Connection: databaseType=Java Beans Connectivity serverName=WorkinfoDataSourceBean state=closed databaseDriverName=crdb_javabeans.dll).
com.crystaldecisions.reports.queryengine.al: Error loading ResultSet class (WorkinfoDataSourceBean)Hi,
When there is a need to display huge amount of data...one approach is to display data on demand by user.
Keep updating the table with latest 100 rows and when user wants previous history populate the table with previous history of data. By providing comfortable user interface user will not feel it as a burden.
Hope this helps.
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved. -
Hello NI,
i am using database toolkit and sql server 2005... my application has to insert 50 channels of termocouple data with the interval of 1 min, and the process will go on continuosly...
my question is that our customers need a graph display as well as data table display... is it possible to show the data graph as well as data string as table...
for one day will have around 500 or 800 rows of 50 channels....
will it manage the PC memory for doing this task?..
if its not possible then, how can i manage?
suggesstion please.
Regards,
Balaji DP
Solved!
Go to Solution.Hi,
When there is a need to display huge amount of data...one approach is to display data on demand by user.
Keep updating the table with latest 100 rows and when user wants previous history populate the table with previous history of data. By providing comfortable user interface user will not feel it as a burden.
Hope this helps.
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved. -
Need to copy CMS data base from MySQL to oracle
Hi,
Right now our CMS data base is My SQL and we are planning to use oracle db as CMS data base. For that we will copy all CMS tables from My SQL to oracle. But I am not sure whether we can copy My SQL db to oracle db using copy option of script cmsdbsetup.sh.
Below are my environment details:
============================================
Product: BO XI R3.1
OS: Linux
CMS DB: My SQL
Aplication server: Aapche-Tomcat
============================================
Let me know whether I can copy CMS My SQL data base into Oracle data base using copy option of cmsdbsetup.sh script.
Thanks,
Swapnil Rodge.hillelhalevi wrote:
I don't have TOAD nor any other tool for querying the database. I'm wondering how I can load a large data set from an Oracle table onto my desktop using Excel or Access or some other tool using ODBC or not using ODBC if that's possible. I need results to be in a .csv file or something similar. Speed is what is important here. I'm looking to load more than 1 million but less than 10 million records at once. Thanks.
Use Oracle's free Sql Developer
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
You can just issue a query like this
SELECT /*csv*/ * FROM SCOTT.EMP
Then just save the results to a file
See this article by Jeff Smith for other options
http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/ -
hello mike,
i am getting error when i insert the data in to sql data base, check my code, last day i was using the same method it was workking well, now i am getting problem ... please find this attachment.
Regards,
Balaji DP
Attachments:
db1.JPG 63 KB
insert.vi 30 KBIt looks like your database reference is invalid; check your UDL file.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice -
Execute procedure in data base out of sap by dbcon
Hi all
I wish to execute procedure in outside oracle database
And get as a result a cursor/list/table.
The syntax in the abap help is:
EXEC SQL.
EXECUTE PROCEDURE PROC2 ( IN :Y, OUT :Z )
ENDEXEC.
This syntax treat only one filed OUT
I am looking for the correct syntax for:
Call procedure without IN data and get and be able to treat OUT data a cursor.
ThanksHi,
Passing more than one input,just try this.
EXEC SQL.
CREATE OR REPLACE PROCEDURE proc_name ( X IN number
Z in number,
Y OUT number )
Y := X + Z;
END proc_name;
I don't think you can get more than one output. -
Help understanding how to pass dates to procedures in a package?
When I run the following script in SQL*Plus, I get no obvious errors, but the truncate does not happen and all the other processing doesn't happen. I ran a similar version in another tool and it worked. Much of the code is deleted here but I believe I don't fully understand passing dates in the procedure. I figure if one of the dates ends up null or something invalid, the procedure will run and give no results. If someone could correct me on how to pass variables, it would help greatly. As you can see, I am passing 2 dates in from an ACCEPT statement, passing them to 1 shell type procedure which runs other procedures and passes the dates to the procedures below it. This procedures calls the 3rd procedure and passes the same dates to it:
ACCEPT CUR_PERIOD PROMPT 'Current Period (MM/DD/YYYY): ';
ACCEPT PRIOR_PERIOD PROMPT 'Prior Period (MM/DD/YYYY): ';
EXEC RCO.MONTH_END_PACK_1.MONTHENDPHASE1PROC('&CUR_PERIOD','&PRIOR_PERIOD');
The spec looks like this:
CREATE OR REPLACE PACKAGE MONTH_END_PACK_1 AS
PROCEDURE MonthEndPhase1PROC(get_cur_period IN DATE, get_prior_period IN DATE);
PROCEDURE W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE);
PROCEDURE WO_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE);
END MONTH_END_PACK_1;
The body looks like this:CREATE OR REPLACE PACKAGE BODY MONTH_END_PACK_1 AS
PROCEDURE MonthEndPhase1PROC(get_cur_period IN DATE, get_prior_period IN DATE) IS
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE RPT_DS1_CNT';
EXECUTE IMMEDIATE 'TRUNCATE TABLE RPT_DS1_CNT_CAT';
W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD, GET_PRIOR_PERIOD);
END;
PROCEDURE W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE) IS
CUR_PERIOD DATE;
PRIOR_PERIOD DATE;
BEGIN
-- Assign the dates to this procedure that were passed in above.
CUR_PERIOD := GET_CUR_PERIOD; --07/27/2007
PRIOR_PERIOD := GET_PRIOR_PERIOD; --06/27/2007
-- Execute stored procedure, passing in dates.
WO_CAT_INFO_RPT_PROC(CUR_PERIOD, PRIOR_PERIOD);
-- Other code goes here
END; -- W_CAT_INFO_RPT_PROC
PROCEDURE WO_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE) IS
CUR_PERIOD DATE;
PRIOR_PERIOD DATE;
BEGIN
CUR_PERIOD := GET_CUR_PERIOD;
PRIOR_PERIOD := GET_PRIOR_PERIOD;
INSERT INTO RPT_DS1_CNT
(select distinct trim(CVBI_KEY) as CVBI_KEY, vendor_id
from
(select m.cvbi_key, v.vendor_name
from rco.cogs_resource m,RCO.COGS_SRVCTYP st,rco.cogs_mkt ms,RCO.COGS_VENDOR v,
(select distinct cvbi_key, vendor_id
from RCO.COGS_resource
where period = CUR_PERIOD)ak
where ak.cvbi_key = m.cvbi_key
and trim(m.cvbi_key) = trim(st.cvbi_key(+))
and period = CUR_PERIOD));
END;
END;
/EXEC RCO.MONTH_END_PACK_1.MONTHENDPHASE1PROC(to_date('&CUR_PERIOD','MM/DD/YYYY'),to_date('&PRIOR_PERIOD','MM/DD/YYYY'));
As you can see, I am passing 2 dates in from an ACCEPT statementUntil you convert them using TO_DATE they are just strings
Message was edited by:
3360
Fixed date formats -
Connection to diferent Data Bases in a same procedure
Hi!...
I need your help!!!
I am trying to make in a same procedure two connections to two different data bases, but my problem recide in which the first connection if it is made, but second no.
Is any problem with the use of different ODBC (a one for and data base another one for another one)?
Please!, Help me!!!
Don't late, please!!!Thanks for answer!!!
ok, this is the code:
private Connection conexion()
String cveb = broker;
String Lcad;
Connection connection = null;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
sFile();
Connection ConnecUni = DriverManager.getConnection(LConexion, LUser, LPwd);
Lcad = "SELECT USU_BD, PWD_DB, NAM_ODBC FROM CONFIGURACION where ID_BROKER = '" + cveb + "'";
Statement Cnx = ConnecUni.createStatement();
ResultSet RS = Cnx.executeQuery(Lcad);
if(RS.next())
wUser = RS.getString("USU_BD");
wPwd = RS.getString("PWD_DB");
wConexion = RS.getString("NAM_ODBC");
RS.close();
Cnx.close();
ConnecUni.close();
connection = DriverManager.getConnection(wConexion, wUser, wPwd);
catch(SQLException _ex)
System.out.println("Error al crear la conexion a la base de datos del broker. (SQLException POPQUERY)" );
return null;
catch(ClassNotFoundException _ex)
System.out.println("Error al crear la conexion a la base de datos del broker. (ClassNotFoundException)");
return null;
catch(Exception _ex)
System.out.println("Error al crear la conexion a la base de datos del broker. (Exception)");
return null;
return connection;
The procedure sFile() read a text file. The information of this file is:
jdbc:odbc:ConfEtour
universal
universal
This is for the first connection and the information of the wConexion, wUser and wPwd is for de second connection.
This show the next error:
(SQLException POPQUERY)java.sql.SQLException: [Microsoft][Administrador de controladores ODBC] No se encuentra el nombre del origen de datos y no se especific� ning�n controlador predeterminado
Is somethig about the ODBC name not found but it is exists... if i tray to connect by ODBC it's work!... but not by the code...
What is wrong??!!
Help me please!!!!
Thank's! -
please advice how to solve that problem (in steps):
after completing p6 installation and during upgrading the old Data Base from p6 v8.3 to P6 v8.4 I'm facing that error
((missing permissions: DBMS_REPUTIL. Run the manual script first --> manual_script_before_upgrade.sql)for more help this image is much helpful
1. Open cmd prompt >> Type sqlplus / as sysdba; >> connect sys/oracle@XE as sysdba;
2. Type @ <path>\manual_script_before_install.sql
thanks for Pablo Oyarzo - Oracle for his help as the above answer related to him -
Set date as MM/dd/yyyy as in parameter for SQL Server stored procedure
I have string date in MM/dd/yyyy .
My requirement is to send date as in parameter to stored procedure in format MM/dd/yyyy .
CallableStatement cstmt=null;
cstmt = connection.prepareCall("{......
How this to be done .I am Using SQL server.
If i do like below data field is not updated by my code.
cstmt.setTimestamp
cstmt.setDate
But if procedure is executed from SQL Query Anylaxer procedure is updatingHi,
The format that appears by Default for date printing in the List is picked from SU01 parameters or SU3
You can change the defaults by going into ur system profile.
Su01 - Change - Go into Defaults tab.
U can see various details like Start Menu, Logon lamguage, Decimal notation and date format. Choose the format u want and save .
But the Date Format Is not reflected just by changing the format, you need to Log Off and Log In again to see the changed format in the output.
also see the link
http://web.mit.edu/sapr3/docs/webdocs/getstarted/gsSETTINGS.html
Hope this helps.
Thanks
Ruchika -
How to make data base link from oracle 11g r2 to microsoft sql 2008 express
I need to make data base link from oracle 11g r2 to microsoft sql 2008 express to make replication between then
please help me !
I didn't know what is the user and password in the command which create database linkTo replicate data you can ude Database Gateway for ODBC or Database Gatewy for MS SQl Server. Please use the search engine of this forum if you ant to get more details about each product.
Some SQl Servers are set up to use Windows authentication only. In this case you won't be able to connect to the SQL Server as Windows authentication isn't supported with the gateways. You have to make sure your SQL server is supporting username and password authentication - a common user is the "sa" user. Regarding the username/password, please get in touch with your SQL Server Admin. -
Upgrade data base from sql server 2005 to sql server2008
Hi guys,
What is the best way for upgrade my SQL Server 2005 data base to SQL 2008?It depends on how you want migrate, in-place or side-by-side?
In-place: Run a backup of all databases and then install the new SQL Server version
Side-by-side: Install the new SQL Server, backup all database of old SQL Server and restore them on the new one. Then copy all logins from old to new server.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Can you use SQL Developer against non Oracle data bases?
If so, then how do you define the connection for non Oracle data bases?
Look, SQL Developer has got to be a 'gateway' into Oracle DBs from other databases. JDBC allows simple introspection and execution of SQL commands. So the 'explain' button won't be available, or some of the DDL stuff, big deal! Let them get a taste of what they are missing by not having an Oracle database.
If we can get non-Oracle developers (especially MS SQL Server) to use SQL Developer it will expose them to the superiority of the Oracle DB server.
If they have heterogenous services installed they are already an Oracle customer -- we have little additional DB server sale opportunity there. SQL Developer is a really sweet tool and it could be a real draw into the DB server sales.
SQL Developer must be easily usable by non-Oracle customers in order to help us sell the DB server to them!
Maybe you are looking for
-
Getting alpha channel to export from AFX to Photoshop
I have an image in After Effects CS4 with some text on it and a transparent background. I need to export this as a png (retaining the background transparency). I've tried to do this in many ways (as single frame or as png sequence after reducing wo
-
The company I work for recently changed the email server to an exchange server with Outlook as the front end application. Before we had an Oracle conduit to interface our Outlook applicaton with the prior email server and I was able to sync my Treo 6
-
Exec stored proc on receipt of email in gmail in box
We have a job that each day downloads an email that meets a certain criteria based on subject and send from a gmail inbox. This job runs at a set time daily, I would like instead to trigger the stored procedure on receipt on the email rather than at
-
Another Email Query, hopefully a bit easier to fix...
Hi all, Just had BT Total Broadband activated, this morning. Everything running fine and dandy, good speeds, etc... However.... My '@btinternet' email address does not work, obviously I need this to setup BTFon, Email Accounts, Security software and
-
Wireless Guest and mac authentication
Hi all, I want to setup a wifi guest network with mac based authentication. I already have the guest anchor controller and the remote wlc controller (and the mobility tunnel) up and running. However, i am uncertain where i have to program the mac add