InstallAllOracleASPNETProviders.sql &CurrentUser var

Installed ODTwithODAC1110720 on Vista64 and executed InstallAllOracleASPNETProviders.sql afterwards as suggested from SQLDeveloper.
A dialog pops up "Enter substitution variable currentuser". So I type in my user name... A few hours and a thousand dialogs later <arrrrgggg> there are still lots of errors in the script.
Upon script inspection: Isn´t &CurrentUser supposed to persist after the first time or do I need to obey a different script order?
Installer help seems to only tell about a different Unix mechanism.
Thx
G.

Hi!
I suppose the script is asking for a current user for ODT, not your "currentuser". Please, check this Linux help (sometimes is usefull) and search which must be "the current user". Lot of errors in scripts are normal and are indicating this "incorrect user".
Chao!

Similar Messages

  • PL/SQL FUNCTION VAR VALUE

    Hello everybody.
    a Short question , I need help with this, I have a report based in a SQL Query (PL/SQL function body returning SQL Query) and I need to see the query returned.
    My question ¿How I can see the content of the query that I construct?.
    Any help wellcome.
    Thanks & regards everybody.

    You may compute your query in an item:
    http://htmldb.oracle.com/pls/otn/f?p=31517:99
    http://htmldb.oracle.com/pls/otn/f?p=31517:31
    Look at these examples, they may help you.
    Denes Kubicek

  • Use var of sql:query tag into a jsp fragment code

    Hi, i'm spanish and my english is not very good XD.
    I need to use some data from <sql:query> tag into code jsp <% %>
    EXAMPLE:
    <sql:query var="variable">
    </sql:query>
    <% what can i do to access to "variable" here????????? %>
    i need to save in session (session.setAttribute(...)) a field of the response of the query saved in "variable"
    i need help!!!!, thanks!!!!!!!!

    i need to save in session (session.setAttribute(...)) a field of the response of the query saved in "variable"Why do you need java code to do this? If you are using JSTL sql tags, then why not keep using JSTL tags?
    <c:set var="valueToSave" value="${variable.field}" scope="session"/>EL variables are actually already stored as attributes in scope.
    So to get hold of "variable" you could use <%= pageContext.findAttribute("variable") %>
    and that would give you the object stored by the EL.
    cheers,
    evnafets

  • Passing Var to Java from PL/SQL

    I am trying to pass a PL/SQL varchar2 var to Java String. Java is not responding..
    sendmail(v_sub,v_msg,'[email protected]','[email protected]');
    it does accept ('ddd','ddd','[email protected]','[email protected]');
    Any ideas on how to make it work so I can use PL/SQL variable.
    Thanks much!

    Try with the following example.
    This ia taken from the Oracle8i manual.
    import java.sql.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    public class GenericDrop {
    public static void dropIt (String object_type, String object_name)
    throws SQLException {
    // Connect to Oracle using JDBC driver
    Connection conn =
    DriverManager.getConnection("jdbc:default:connection:");
    // Build SQL statement
    String sql = "DROP " + object_type + " " + object_name;
    try {
    Statement stmt = conn.createStatement();
    stmt.executeUpdate(sql);
    stmt.close();
    } catch (SQLException e) {System.err.println(e.getMessage());}
    CREATE OR REPLACE PROCEDURE drop_it (
    obj_type VARCHAR2,
    obj_name VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'GenericDrop.dropIt(java.lang.String, java.lang.String)';
    Create table ee1(a number);
    declare
    i1 varchar2(20);
    i2 varchar2(20);
    begin
    i1:='TABLE';
    i2:='EE1';
    dropit(i1,i2);
    end;
    There is no problem in executing the above procedure.
    What is the exact error message you are getting?

  • Help on JSTL sql:query / tag

    Hi.....
    Currently i am trying to query a date from MSSQL using <sql> tag. I had tested in MSSQL on this SQL statement which is:-
    SELECT * FROM hr_leave WHERE startDate LIKE 'Apr 20 2006%'
    It can query my MSSQL datetime.
    Then , I apply this query inside my JSP/JSTL page which is :-
    <%@ include file="/common/header.jsp" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <jsp:useBean id="now" class="java.text.SimpleDateFormat"/> <!-- get current date -->
    <c:set var="userid" value="${sessionScope.currentUser.id}"/> <!-- get current user id -->
    <c:set var="dates"><fmt:formatDate value="${now}" type="DATE" pattern="MMM dd yyyy"/></c:set>
    <sql:setDataSource var="ds" driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://192.168.250.86:1223;DatabaseName=eleavedb;SelectMethod=cursor" user="sa" password="sapassword"/>
    <sql:query var="countLeave" dataSource="${ds}">
    SELECT * FROM hr_leave_entry WHERE startDate LIKE (?, '%')
    <sql:param value="${dates}"/>
    </sql:query>
    From the code above it displayed an an error for me. I am worried whether my select statement and my way of using the '%' symbol is it not correct.
    Can anyone guide me? Thank You!

    And the error was?
    No, that sql does not look valid the way that you have written it.
    Parameters are NOT copied/pasted into sql strings. They replace the value directly. So the correct sql would be
    SELECT * FROM hr_leave_entry WHERE startDate LIKE ?
    You would need to actually pass the parameter as 'Apr 20 2006%'

  • Problem with pl/sql table data type

    hai friends,
    i have one procedure it has some in parameters and one out parameter which fetches values to front end.
    But the out parameter will be pl/sql table data type.
    if it is ref cursor
    then i declared as
    var x refcursor;
    exec procedure_name(1,:x);
    it is ok.
    but for pl/sql table data type is out parameter then what i will do in the prompt .
    give me syntax and clarify my doubt.
    advanced thanks...
    madhava

    The SQL*Plus VARIABLE statement does not support user-defined types, hence it cannot support nested tables. It can support cursors because they can be weakly typed (so we can use the one SQL*Plus VAR to hold any shape of resultset). Nested tables are strongly typed; SQL*Plus is a relatively stupid interface and cannot be expected to understand UDT.
    So, it you want to use nested tables as output you'll need to code a wrapping procedure that can understand your nested table type and handle it accordingly.
    Sorry.
    Cheers, APC

  • SQL query with parameter returns empty result set, please help !!!

    Hi there,
    When I use the following query :
    <sql:query var="beroepsthemas" >
    select *
    from beroepsthemas
    where beroepsthemaid = ?
    <sql:param value="12"/>
    </sql:query>
    When I want to browse the result set with :
    <c:forEach items="${beroepsthemas.rows}" var="rij">
    it shows no records. But it must return at least one.
    All my jsp pages with sql queries and parameters have the same problem.
    This is all on my test environment. I'm using Ubuntu 5.10, Netbeans5.0, JDK 1.5_06, application runs in Bundeled Tomcat 5.5.9, MySQL 4.1.12, mysql-connector3.1.6
    When the same code is run on the live environment, it works just fine.
    The difference is :
    Mysql 4.1.10a, tomcat5.5.9, mysql-connector3.1.6
    What can there be wrong !!

    When the same code is run on the live environment, it
    works just fine.
    The difference is :
    Mysql 4.1.10a, tomcat5.5.9, mysql-connector3.1.6
    I didn't catch this. I think you may need to update the database driver.

  • Not able to connect to database(MS SQL Server 2000) through JSTL tag

    Hi,
    I just want to retrieve some data from the database through a JSP page.I am using JSTL tags the code is as shown below. Whenever i execute this code i get an error message like this
    My Code:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
    <sql:setDataSource var="datasource"
    driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    url="jdbc:mssqlserver:sqlserver://SYS57:1433;DatabaseName= sree"
         user=" "
         password=" "/>
    <sql:query var="res" dataSource="${datasource}">
    SELECT * FROM books
    </sql:query>
    <html>
      <head>
        <title>A First JSP Database</title>
      </head>
      <body>
        <table border="1">
          <tr>
            <td>id</td><td>title</td><td>price</td>
          </tr>
          <c:forEach items="${res.rows}" var="row">
          <tr>
            <td><c:out value="${row.id}" /></td>
            <td><c:out value="${row.name}" /></td>
            <td><c:out value="${row.author}" /></td>
          </tr>
          </c:forEach>
        </table>
      </body>
    </html>error is this:
    javax.servlet.ServletException: Unable to get connection, DataSource invalid: "No suitable driver"
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.firstdb_jsp._jspService(org.apache.jsp.firstdb_jsp:93)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "No suitable driver"
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:308)
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:192)
         org.apache.jsp.firstdb_jsp._jspx_meth_sql_query_0(org.apache.jsp.firstdb_jsp:132)
         org.apache.jsp.firstdb_jsp._jspService(org.apache.jsp.firstdb_jsp:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)I am not clear with url attribute of setDatasource tag... I feel the error is because of that line only..... Kindly tell me how to specify the jdbc URL for MS SQL Server 2000 while using JSTL tags for connection.
    Thanks,
    Akshatha

    unable to rectify the error........ tried lot but all in vain...still trying........
    my current code is:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
    <sql:setDataSource var="datasource" driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    url="jdbc:microsoft:sqlserver://SYS57:1433;databaseName=sree" user="sa"
             password="dfgdfg"/>
    <sql:query var="res" dataSource="${datasource}">
      SELECT * FROM books
    </sql:query>
    <html>
      <head>
        <title>A First JSP Database</title>
      </head>
      <body>
        <table border="1">
          <tr>
            <td>id</td><td>title</td><td>price</td>
          </tr>
          <c:forEach items="${res.rows}" var="row">
          <tr>
            <td><c:out value="${row.id}" /></td>
            <td><c:out value="${row.name}" /></td>
            <td><c:out value="${row.author}" /></td>
          </tr>
          </c:forEach>
        </table>
      </body>
    </html>Thanks,
    Akshatha

  • Sql in jspx file

    In my jspx file .....iam using JSTL package for exceuting sql query in jsf page....
    but it could not run here i mentioned my code ..whats is mistakes in my code
    <sql:setDataSource
    driver="sun.jdbc.odbc.JdbcOdbcDriver"
    url="jdbc:odbc:dsn4"
    user="xyz"
    password="zyz"/>
    <sql:query var="employees">
    SELECT * FROM ggggg
    </sql:query>
    <c:forEach var="row" items="#{employees.rows}">
    <af:outputText value="#{row.Currcode}" />
    </c:forEach>
    i tried this one also
    c:forEach var="row" items="${employees.rows}">
    <af:outputText value="${row.Currcode}" />
    </c:forEach>
    but still i getting error
    Thanks in advance
    Message was edited by:
    user611389

    my jspx file .....iam using JSTL package for exceuting sql query in jsf page....
    but it could not run here i mentioned my code ..whats is mistakes in my code
    <sql:setDataSource
    driver="sun.jdbc.odbc.JdbcOdbcDriver"
    url="jdbc:odbc:dsn4"
    user="xyz"
    password="zyz"/>
    <sql:query var="employees">
    SELECT * FROM ggggg
    </sql:query>
    <c:forEach var="row" items="#{employees.rows}">
    <af:outputText value="#{row.Currcode}" />
    </c:forEach>
    i already imported the jstl package in name space ,
    when i run this page in jdeveloerits showing error is
    Error: Expression Language not supported in compile time attribute items

  • How to check the sql:query is return null value

    I have use :
    <sql:query var="sql1" dataSource="${db}">
    select col_name from table_name
    where a=<c:out value="${row.test1}"/>
    and b='<c:out value="${row.test2}"/>'
    </sql:query>
    So, how can I check this statement return null value which is no record within this table?

    The Result should never be null but can be empty. You can check if the Result is empty using an if tag and checking the rowCount property:
        <sql:query var="books"
          sql="select * from PUBLIC.books where id = ?" >
          <sql:param value="${bookId}" />
        </sql:query>
         <c:if test="${books.rowCount > 0}">
         </c:if>http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL7.html#wp84217
    Look for query Tag Result Interface

  • Replace sql.. using ADF

    Hi,
    How can I use ADF to insert data into table instead of <sql:update...>statements?
    <sql:update var="newTable">
    create table mytable(
    nameid int primary key,
    name varchar(80)
    </sql:update>
    <Inserting three rows into table
    <sql:update var="updateCount">
    insert into mytable values(1,'Paul')
    </sql:update>
    is there tutorial available for this particular case?
    thanks in advance

    If you are using ADF Business Components you can just issue commands to the database using the connection of the AM and using a separate transaction.
    There is an example as part of the Coding Tips for ADF BC here:
    http://www.oracle.com/technology/products/jdev/tips/muench/techniques/index.html

  • Name-value pairs in SQL Tag

    Hi all,
    The problem in my code shown bellow is in "AND ? LIKE ?"
    since the name parameter cannot be ? in the name-value pairs
    But I really need the "name" param can be choosen by me :(
    Please help!! thks :)
    <sql:query var="plates" dataSource="${applicationScope.aod}">
    SELECT DISTINCT id, filename, project
    FROM xxxx
    WHERE project = ?
    AND ? LIKE ?
    <sql:param value="${param.project}"/>
    <sql:param value="${param.which}"/>
    <sql:param value="%${param.what}%"/>
    </sql:query>
    Cheers,
    George

    You would have to do it like this I think:
    <sql:query var="plates" dataSource="${applicationScope.aod}">
    SELECT DISTINCT id, filename, project
    FROM xxxx
    WHERE project = ?
    AND <c:out value="${param.which}"/> LIKE ?
    <sql:param value="${param.project}"/>
    <sql:param value="%${param.what}%"/>
    </sql:query>You then have to count on the param "which" generating correct SQL.

  • Tomcat 5.0.16 SQL JSLT not working

    Hi all,
    I am trying to use SQL JSLT tag. When I access the JSP I am getting un-processed JSP page.
    Here is my orginal JSP File:
    <sql:setDataSource
    var="shopDb" scope="session" driver="org.gjt.mm.mysql.Driver" url="jdbc:mysql://192.168.1.31:3306/ptceDB" user="xxxx" password="xxx"/>
    <sql:query var="userList" scope="request" dataSource = "${shopDb}">
    SELECT * FROM roomtable
    </sql:query>
    <c:choose>
    <c:when test = "${userList.rowCount ==0}">
    Sorry, there are no customers on the
    </c:when>
    <c therwise>
    Here is the list of customers
    <br>
    <table border="1">
    <th>User name</th>
    <th>Address</th>
    <c:forEach items="${userList.rows}" var="row">
    <tr>
    <td><c ut value="${row.Roomno}" /></td>
    <td><c ut value="${row.Name}" /></td>
    </tr>
    </c:forEach>
    </table>
    </c therwise>
    </c:choose>
    This is what I am getting in my browser:
    ( view source ouput)
    <sql:setDataSource
    var="shopDb" scope="session" driver="org.gjt.mm.mysql.Driver" url="jdbc:mysql://192.168.1.31:3306/ptceDB" user="xxx" password="xxx"/>
    <sql:query var="userList" scope="request" dataSource = "">
    SELECT * FROM roomtable
    </sql:query>
    <c:choose>
    <c:when test = "false">
    Sorry, there are no customers on the
    </c:when>
    <c therwise>
    Here is the list of customers
    <br>
    <table border="1">
    <th>User name</th>
    <th>Address</th>
    <c:forEach items="" var="row">
    <tr>
    <td><c ut value="" /></td>
    <td><c ut value="" /></td>
    </tr>
    </c:forEach>
    </table>
    </c therwise>
    </c:choose>
    any help to fix this problem?
    SR

    I'm surprised to see that you're seeing JSTL/JSP code when you "View Source", because if everything's done properly you should only see HTML in the browser.
    The URIs changed from JSTL 1.0.3 to 1.1. Maybe that's the problem.
    Where are the taglib imports in your JSP? Did you just leave them out when you posted your code? - MOD

  • Sql database connection in jsp

    Hi,
    I am new to java.
    I know how to connect the database in the java using the javacodings [jdbc] but i am don't know how to connect the database using the jsp.
    Is it easy. If so, can any one help me in this regards.
    Any sample codes or white paper available.
    thanks in advance,
    Regards,
    sa

    Hi,
    Here's a simple application i write to test JSTL.
    Using JSTL is easier.
    Create a directory named tests in your webapps tomcat directoty.
    In this, create a web-inf dir and inside a lib dir.
    Copy JSTL.JAR ans STANDARD.JAR in tests/web-inf/lib/ which are lib for JSTL (found on apache foundation web site, jakarta implementation).
    Copy you jdbc driver in jakarta-tomcat/common/lib dir.
    Here is a file to input some data from an HTML form:
    Create saisie.jsp and record.jsp in you tests apps dir.
    saisie.jsp:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>Simple Example</title>
    </head>
    <body>
        <h1> Saisie de donn�es  </h1>
        <form name="saisie" action="record.jsp" method="get">
            Code :<input type="text" name="code"/>
            Text :<input type="text" name="text"/>
            <input type="submit" name="submit"/>
        </form>
    </body>
    </html>and record.jsp:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ page isELIgnored ="false" %>
    <html>
    <head>
    <title>Simple Example</title>
    </head>
    <body>
    <sql:query var="result"  maxRows="100">
         select * from ess
    </sql:query>
    <table>
         <!-- Affichage de l'ent�te avec le nom des colonnes -->
         <tr>
         <c:forEach var="name" items="${result.columnNames}">
              <th>${name}</th>
         </c:forEach>
         </tr>
         <!-- Affichage des donn�es avec 'rowsByIndex' -->
         <c:forEach var="ligne" items="${result.rowsByIndex}">
         <tr>
              <c:forEach var="valeur" items="${ligne}">
                   <td>${valeur}</td>
              </c:forEach>
         </tr>
         </c:forEach>
    </table>
    <c:set var="code_id" value="${param.code}"/>
    <sql:update>
        INSERT INTO ESS (ID,TEXT) VALUES (?,?)
        <sql:param>${param.code} </sql:param>
        <sql:param>${param.text}</sql:param>
    </sql:update>
    </body>
    </html>Here's web.xml file to create in tests/web-inf dir:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <description>Learning JSTL (or whatever you like</description>
        <context-param>
              <param-name>javax.servlet.jsp.jstl.sql.dataSource</param-name>
              <param-value>jdbc:postgresql://127.0.0.1/gihe,org.postgresql.Driver,gihe,****<param-value>
         </context-param> 
    </web-app>web.xml contains the datasource definition, the jdbc driver, the url, user and password.
    saisie.jsp is a standard html file.
    record.jsp use web.xml datasource to connect to the database and use JSTL tag to insert some data.
    more explanations on java sun site.

  • Help with JSTL sql query

    i have a query that i want to pass a paramater to the query goes like this
    <sql:query var = "user" >
    SELECT AMOUNT,flag FROM SAVINGS_ACTIVITY_DETAILS WHERE ACCOUNT_ID =? AND AMOUNT >200000 AND Flag =1 AND ACCOUNT_ACTION_ID =6 AND Treated =0 ORDER BY created_date DESC
    <sql:param value="${test.accountId}"/>
    </sql:query>
    this will give an error on TLD attribute.................and i tested the value with the following code and it worked
    <c:set value="${test.accountId}" var="u"/>
    <c:out value="${u}"/>
    this will print out the value nicely now i need a way to be able to pass this value to the sql query
    Thanks

    Which version of jstl are you using? == JSTL1.1
    However the other two questions remain unanswered.
    What server are you using? Version?
    How are you importing the tag library?
    You can find out the server info with this snippet of a JSP:
    Working with server: <%= application.getServerInfo() %><br>
    Servlet Specification: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> <br>
    JSP version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>
    Java Version: <%= System.getProperty("java.version") %><br>

Maybe you are looking for

  • Creation of new field in RFX screen and populating item details

    Hi Experts, I have to create a new button in "Create RFX " screen where it should procure the shopping cart details and it should populate in table in RFX screen. Shopping cart number should be entered in this screen. Set up for this input field is a

  • How to use 3 displays with  G5?

    I want to use 3 displays, one cinema and two, older, 15" studio displays. As there are only 2 display outputs on the G5 , how should I connect the extra studio displays? Best Ollie

  • From knowledge Art to email error Reference Link not created

    Just upgraded to Solman 7.1 SP10 When I have created a knowledge article I use "MORE - > Create follow up", select email to send the knowledge article to a user, then I get this message : "Reference Link not created as this Object Reference is not cu

  • SQL Server 2000 to Oracle 9i

    Hi, I have a "Test" SQL Server DB with a "test" table. When I try to capture the source DB (SQL Server). It generated many errors: EXCEPTION: SQLServer2kSourceModelMap.mapPrimaryKeys():test.null.null;java.util.NoSuchElementException EXCEPTION: SQLSer

  • Handling BW variables/BO prompts

    Hi, What is the best-practice way of handling prompts/input variables in a BW/BO scenario when it comes to the time characteristic/dimension? I want to report on Cost Center Company Code Value Current Fiscal Period (user input) Value Year to date (ba