HOW do I create a href to an sql statement?

Answer to query:
“You sould create a href to an sql statement ( create new user / passwd : and insert in a table (C_user,C_PASSWD), to have a list of users registred at your application)
A htp page can manage this
you should create roles that be granted to users,
1- create &user dientified by &passwd;
2- create role1....;
3- grant &role1 to &user1;
:user will be added by user if he chooses registration href.
then he must add information in order to continue registration or push OK to confirm registration and let oracle grant previleges to the new user, a trigger can insert the new informations to the user_table_traces.”
MY QUESTION:
HOW do I create a href to an sql statement?
Thank You

Hello,
I have an application written in PL/SQL that sits on top of an Oracle database. I want to know how add a password/login feature to the application. In other words the user can go to a certain URL to access and use the application. However when the user clicks on a certain link that is restricted, then the webpage displays fields so that the user has to enter a username and password. In order to access restricted features of the application such as ADD, UPDATE and DELETE.
Thanks

Similar Messages

  • How to use a Sybase table in Oracle SQL statement?

    How to use a Sybase table in Oracle SQL statement?
    Sybase version : 11.9.2.4
    Oracle version : 10.2.05
    Thanks.

    user12088323 wrote:
    How to use a Sybase table in Oracle SQL statement?
    Sybase version : 11.9.2.4
    Oracle version : 10.2.05
    Thanks.Any Oracle client connected to the Oracle database can access Sybase data through the <font style="background-color: #FFFFCC">Database Gateway for Sybase</font> (it requires an additional license) or the <font style="background-color: #FFFFCC">Database gateway for ODBC</font> (it's free).
    The Oracle client and the Oracle database can reside on different machines. The gateway accepts connections only from the Oracle database.
    A connection to the gateway is established through a database link when it is first used in an Oracle session. In this context, a connection refers to the connection between the Oracle database and the gateway. The connection remains established until the Oracle session ends. Another session or user can access the same database link and get a distinct connection to the gateway and Sybase database.
    Database links are active for the duration of a gateway session. If you want to close a database link during a session, you can do so with the ALTER SESSION statement.
    To access the Sybase server, you must create a <font style="background-color: #FFFFCC">database link</font>. A public database link is the most common of database links.
    SQL> CREATE PUBLIC DATABASE LINK dblink CONNECT TO
    2  "user" IDENTIFIED BY "password" USING 'tns_name_entry';
    --dblink is the complete database link name.
    --tns_name_entry specifies the Oracle Net connect descriptor specified in the tnsnames.ora file that identifies the gatewayAfter the database link is created you can verify the connection to the Sybase database, as follows:
    SQL> SELECT * FROM DUAL@dblink;
    Configuring Oracle Database Gateway for Sybase
    <font style="background-color: #FFFFCC">{message:id=10649126}</font>

  • How to call a FoxPro .prg file through SQL statement

    I created a program exclusive.prg which basically consisted of the statement USE my table exclusive. How can i call this function through a SQL statement using java

    Hi,
    Thank you for he reply.
    Runtime.getRuntime().exec(..)works fine with .exe files.
    but, when a foxpro program file(.prg) is compiled, a (.fxp) file is produced and not a .exe file
    when i write some thing like
    statement.execute("exclusive.fxp")i'm getting an error. here is the stack trace
    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violation
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
         at excel.TestMom.main(TestMom.java:28)i also tried using
    statement.execute("do exclusive.fxp") and
    statement.execute("do exclusive.prg")I got the same error.
    Dont know what else to do.Can you please suggest some way to work around.

  • How to get the process id of a sql statement or a session  ....

    How to get the process id of a sql statement or a session . ..?
    Thanks

    What about this?
    SELECT pid
      FROM v$session s, v$process p
    WHERE p.addr = s.paddr
       AND s.sid = :sid;   -- replace :sid with your session idRegards.
    Al

  • How do I create a connection string to sql server?

    Hi All,
       I am currently connecting to a SQL Server via ODBC DSN connection. I am wondering how do I create a connection string directly to a sql server without a DSN connection?
    Thank you in advance.

    If you have SQL Server or client installed in your machine you can directly connect to SQL server using native connection. When you create new report you can see the option create new connection, here you can see SQL Server. Expand it and enter the connection details where you will be directly connected to SQL Server without ODBC connection.
    Regards,
    Raghavendra

  • How to store data into database by reading sql statements from text file

    how to write java program for storing data into database by reading sql statements from text file

    Step 1: Create a property file to add various queries.
    Step 2: Read the properties file using ResourceBundle
    Step 3: Use the jdbc to execute the query read from the property file.
    So in future if you need to change query no need do any modifications in java program. But depends on how you use the property file.

  • How can I open a cursor for dynamic sql statement

    Hi,
    I'm facing issues opening a cursor for dynamic sql statement : PLS-00455: cursor 'RESULT1' cannot be used in dynamic SQL OPEN statement.
    CREATE OR REPLACE FUNCTION DEMO
    (MN_I in VARCHAR)
    return AB_OWNER.ABC_Type.NonCurTyp is
    RESULT1 AB_OWNER.ABC_Type.NonCurTyp;
    sql_stmt VARCHAR2(4000);
    BEGIN
    sql_stmt := 'SELECT * FROM AB_OWNER.DUN WHERE JZ_I in ('||mn_i||') ORDER BY app.ACC_I';
    OPEN RESULT1 FOR sql_stmt;
    END IF;
    return RESULT1;
    END DEMO;
    What changes should I make in the code so that it doesn't fail? I can't change the definition of RESULT1 cursor though.

    Gangadhar Reddy wrote:
    I used SYS REFCURSOR and was able to implement successfully.How many times did you run this successful implementation that does not use bind variables?
    Because this is what will happen when it runs a lot.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17766/e2100.htm#sthref1874
    http://forums.oracle.com/forums/search.jspa?q=%2BORA-04031%20%2Bbind&objID=c84&dateRange=all&rankBy=10001&start=30
    And you will have to regularly restart the server, or possibly slightly less invasive, flush the shared pool.
    Flushing Shared Pool regularly
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1516005546092
    >
    Ok, this is an easy one to diagnose.
    You are not using bind variables. This is terrible. Flushing the shared pool is a bad
    solution -- you are literally killing the performance on your box by not using them.
    If I was to write a book on how to build “non scalable applications in Oracle”, this
    would be the first and last chapter. This is a major cause of performance issues and a
    major inhibitor of scalability in Oracle. The way the Oracle shared pool (a very
    important shared memory data structure) operates is predicated on developers using bind
    variables. If you want to make Oracle run slowly, even grind to a total halt – just
    refuse to use them.
    >
    But, please feel free to go ahead with this successful implementation.
    I just hope anyone else who reads this doesn't make the same mistake.

  • How to get the time for executing an SQL statement?

    hi all...
    How can I get the total execution time for a given SQL statement to a ViewObject which is created dynamically for this SQL so that the end user knows it before hand and try to stop it or go further..?
    Please post any ideas if you have got..!!!
    thanx in advance..
    grüss
    K°vi

    This is not really a question for the JDeveloper forum, but rather for the DB forum.
    Since Oracle9i there is a way to estimate how long a query will take, before executing it.
    Check it out in the Oracle DB documentation or ask on the DB forum.
    There is no built-in functionality for this in JDeveloper, but you should be able to call out to the DB from your Java code to get the estimate.

  • How do I use a variable within a sql statement

    I am trying to use a local variable within an open SQL step but I keep getting an error.
    My sql command looks like this "SELECT BoardDetailID FROM BoardDetails WHERE SerialNumber = " +  locals.CurrentSerialNo
    If I replace the locals.CurrentSerialNo with an actual value such as below the statement works fine.
    "SELECT BoardDetailID FROM BoardDetails WHERE SerialNumber = " +  " 'ABC001' " 
    Can someone tell me how to correctly format the statement to use a variable?

    Hi,
    Thanks for the reply. I have changed the required variable to a string, but with no success. I have reattached my updated sequence file and an image of the error.
    When looking at the Data operation step I see that the sql statement is missing everything after the last quotation mark.
    Thanks again,
    Stuart
    Attachments:
    Database Test Sequence.seq ‏10 KB
    TestStand error.JPG ‏37 KB

  • HOW TO GET TOP AND BOTTOM RECORDS IN SQL STATEMENT, URGENT

    Hi,
    I want to get the TOP 2 and BOTTOM 2 records (TOP 2 SAL , BOTTOM 2 SAL) from the following query result for each department . How do I get it using a SQL statement ? Thanks
    SQL> SELECT A.DNAME, B.ENAME, B.SAL FROM DEPT A, EMP B WHERE A.DEPTNO = B.DEPTNO ORDER BY DNAME, SAL
    DNAME------------ENAME--------SAL
    ACCOUNTING-------KING--------5000
    ----------------CLARK--------2450
    ---------------MILLER--------1300
    RESEARCH--------SCOTT--------3000
    -----------------FORD--------3000
    ----------------JONES--------2975
    ----------------ADAMS--------1100
    ----------------SMITH---------800
    SALES-----------BLAKE--------2850
    ----------------ALLEN--------1600
    ---------------TURNER--------1500
    -----------------WARD--------1250
    ---------------MARTIN--------1250
    ----------------JAMES---------950
    14 rows selected.

    Search for "top-N query" in oracle doucmentation.
    Example :
    for top 2
    SELECT * FROM
    (SELECT empno FROM emp ORDER BY sal)
    WHERE ROWNUM < 3;
    for bottom 2
    SELECT * FROM
    (SELECT empno FROM emp ORDER BY sal desc)
    WHERE ROWNUM < 3;

  • How to execute entire result set of multiple sql statements via sp_executesql?

    I have a query that generates multiple insert statements (dynamic sql).  So when I execute this my result set is a table of sql insert statements (one insert statment per row in my source data table).  Like so:
                 Select 'INSERT INTO [dbo].[Table_1] ([Col1]) VALUES (' +  SrcData + ')' from SourceDataTbl
    How can I completely automate this and execute all these sql statements via sp_executesql?
    My plan is to completely automate and execute all this via an SSIS package.
    As always any help is greatly appreciated!
    fyi-  This is a very simple version of what I am trying to do.  My query probably plugs in 20+ values from the SourceDataTbl into each of the sql insert statements.

    Ah, a small error in Visakh's post, which I failed to observe, and then I added one on my own.
    DECLARE @SQL Varchar(max)
    SELECT @SQL =
       (SELECT 'INSERT INTO [dbo].[Table_1] ([Col1]) VALUES (' +  SrcData +
                ')' + char(10) + char(13)
        from SourceDataTbl
        FOR XML PATH(''), TYPE).value('.', 'nvarchar(max)')
    EXEC sp_executesql @SQL
    Without ", TYPE" FOR XML returns a string when assigned to a variable. The TYPE thing produces a value of the XML data type, so that we can apply the value method and get string out of the XML.
    And why this? Because:
    DECLARE @str nvarchar(MAX)
    SELECT @str = (SELECT 'Kalle Anka & co' FOR XML PATH(''))
    SELECT @str
    SELECT @str = (SELECT 'Kalle Anka & co' FOR XML PATH(''), TYPE).value('.', 'nvarchar(MAX)')
    SELECT @str
    Although the data type is string when , TYPE is not there, it is still XML and characters special to XML are enticised.
    Confused? Don't worry, for what you are doing, this is mumbo-jumbo.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do I create dynamic HREF anchors??

    Is there any way where I can get a value rendered from a Bean into JavaScript??
    how do I write a javaScript function that can read in the commandLink
    Can I do like this??? Let me know; this is kind a vague :-(
    Eg:
    <h:dataTable var="test" value="#{TestBean.list}">
    <t:column>
    <t:commandLink value="#{test.name}" id="pathway"  onClick="dosomething(#{test.name})" />
    <t:column>
    </h:dataTable>
    <script>
    doSomething(test)
    document.location.href="#test";
    </script>
    //Essentialy the goal is to create dynamic Hrefs

    use h:outputLink

  • How can I create a href with cfgridrow

    Basically I am using cfgrid to display a list of computer from a query.  I would lke to be able to; when I click on the first colum in any row to display a cfm page that will be able to display relevant information to a specific computer.  I will be passing parameter with theurl parameter.  Theses parameter are generated by my original query.
    here is the code i am trying to use.  I didn't include the href.
    This code works OK.  The 2 variables I am trying to send via URL are #machine# which is created from a query and URL.Hotel which is was send thru the URL when I opened this page. (the cfoutput tag were remove )
    <!---<table border="1"
      <TR>
        <TD> PC Name </TD>
        <TD> IP Address </TD>
        <TD> User Name </TD>
      </TR>
      <cfoutput query="listRet">
      <tr>
        <td><a href="ListApp.cfm?pc=#URLEncodedFormat(Trim(Machine))#&hotel=#URL.hotel#">#Machine#</a></ td>
        <td>#IPAddress#</td>
        <td>#Description#</td>
      </tr>
      </cfoutput>
    </table>--->
    Now can I do the same with a cfgrid and cfgrid row
    <cfform format="flash">
    <cfgrid
      query="listRet"
      name="gridPc"
      height="400"
      width="1000">
      <cfgridcolumn name="Machine" header="PC Name" headerbold="true" headertextcolor="blue" width="120">
      <cfgridcolumn name="Description" header="User Name" headerbold="true" headertextcolor="blue" width="250">
      <cfgridcolumn name="IPAddress" header="IP Address" headerbold="true" headertextcolor="blue" width="120">
      <cfgridcolumn name="SystemName" header="Model" headerbold="true" headertextcolor="blue" width="275">
    </cfgrid>
    </cfform>
    Thanks

    You can just use the HREF attribute of CFGRID directly, and it'll automatically pass a row-specific value. You won't be able to specify the exact URL attributes that will be passed - it'll pass a single attribute called "cfgridrow" if I recall correctly.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.

  • How do I create a HREF link to javascript-created ages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Adobe does NOT make the iPad, Apple does.
    This forum is not for general iPad questions. For that head to the forums at the Apple website: www.apple.com.
    You can download the documentation for your iPad in PDF form at the Apple website, and ask questions there.

  • How do I create a HREF link to javascript-created pages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Thank you.  After renaming the ePub file extension to ZIP, I updated the html files to replace the "http://tel" with "tel", rezipped the files, renamed to ePub -- and this corrected the issue.

Maybe you are looking for

  • Calendar server management

    I'm knowning about the  calendarserver_* commands. I can backup and restore the entire calendar server. Can I restore calendars of one user only? Deleting a user in Serveradmin does not delete its calendars (I tested it). How do I delete orphaned cal

  • How do I call a LabView VI via dll to display its control panel in a tab of my uir in LabWindows

    Hi User Community, I am trying to build a LabWindows Top Level Control Panel to call individual LabView VI's, which have been compiled into a dll. I have no problem using the CmtScheduleThreadPoolFunction to start a new thread that calls these VI's h

  • Best way to log/notify when someone logs into ASDM

    What is the best practice to get a notification and log when s omeone logs in and uses the ASDM?  I have syslog server setup and smtp, and snmp traps, but not sure where to tell it to notify me when someone logs into the asdm..... any suggestions? th

  • Retaining deleted messages - problem with preference settings (?)

    I have set up my Mailbox Behaviours to 1) automatically "move deleted message to the Trash mailbox" (this option is selected) and 2) Store deleted messages on the server (IMAP) and 3) Permenantly erase deleted messages when "One month old" BUT... for

  • JVM error during OMBPlus execution

    Hi, Has anybody come across the following problem while executing OMBPlus.sh? OMBPlus crashes with a JVM error. JVMXM004: JVM is performing abort shutdown sequence JVMDG217: Dump Handler is Processing a Signal - Please Wait. JVMDG303: JVM Requesting