Authentication using the table and the existing database

Very new to APEX here. In authentication methods and was curious to know if it is possible to link the Apex on an existing Oracle database and the table to get information for user name and password. Trying to use the employe_id and last 4 of their social.

Any ideas or things I can read up to get a general idea?

JosephPortello wrote:
fac586, thank you. I didn't even know what I had done.

Yet one thing that happens now after I corrected my incorrect syntax.

CREATE OR REPLACE FUNCTION EmployeeIDAuth (
p_username IN VARCHAR2,
p_password IN VARCHAR2
)
RETURN BOOLEAN
IS
form l_count NUMBER;
BEGIN
SELECT COUNT(*) into l_count from table@db WHERE employee_no=p_username AND bdate=p_password;
IF l_count > 0 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
END; 

Now returns an error of:

Error on line 15: PLS-00103: encountered the symbol "end-of-file" when expects it one of the following values:

not end up dominant static of final instantiable order pragma
manufacturer membership card
1. CREATE OR REPLACE FUNCTION EmployeeIDAuth)
2 p_username IN VARCHAR2,
3 p_password IN VARCHAR2

Any other ideas?

Remove the false token form.

Tags: Database

Similar Questions

  • Windows 7 Installer error "Setup could not use the existing system partition because it does not contain the required free space.

    Repeatedly tried to install the upgrade to windows 7 and pure install and get the error message on all partitions available "Setup could not use the existing system partition because it does not contain the required free space.  All 3 partitions on a single disk have over 90 GB and separated from the disc more than 65 GB of free space according to the properties of the disk and initial screen during installation.  Tried to reformat a partition empty all reinstall Xp sp3 without result.  What can I do?

    Remove the data cable of all drives except the drive that you want to install Windows 7 on.

    Remove all external devices.

    Delete all partitions on the disk leave all of the disc as "unallocated".

    Boot from the Windows 7 DVD and then install, when you reach the point where it asks you to select a drive, click the "Advanced" option and create a new partition (at least 50 GB) to install Windows and continue with the installation process.

    Also: http://social.technet.microsoft.com/Forums/nb-NO/w7itproinstall/thread/1b1adc74-3d94-4897-a3c1-7aabde44fe4b

    JS
    http://www.PAGESTART.com

  • 12 c upgrade using the same database

    What is the process for the improvement of the 11.1.1.7 to the current version of 12 c? We will not do a full inplace upgrade. We have new hardware for the 12 c application layer, but will use the same database. Our database is multiple to and do not miss having to deal with all the data duplication and dealing with the deltas.


    Is it possible to install 12 c on the new hardware, and then point the current patterns of these two instances? The upgrade of the patterns would be the only thing that needs to be done to allow the new instance to work with the new application?

    This is described in detail in Note 2058358.1 support

  • the installation program could not use the existing partition because it does not contain the required free space

    before I have install android 5.0 lollipop on mylaptop but I can't use wifi to connect then I use return windows 8.1 and I decided to install windows 8 because I have experience an error I couldn't manage on windows 8.1 .when I try to install windows 8 it shows me this error Setup could not use the existing partition because it does not contain the required free space... I google search for the solution but could not find so I install the windows partition 8 on my system reserved.

    Hi Lawren,

    Thank you for your update on the issue.

    In this case, you may need to format the entire disk, clean the partitions and reinstall new windows as suggested before. However, I suggest you to contact local support for the backup of your data from hard disk partitions.

    Please post back your results for assistance.

  • Send an e-mail using the Oracle database

    Hello!
    I installed Oracle 10 g (10.2.0.4) and I need to send an email using this database. In some notes said to run the following script, but in my case Oracle I don't have the owner "MailSender" or the AptMail function.

    Start
    dbms_output.put_line (mailsender. AptMail ('p_from', 'p_to', null, null, 'p_subject', null, 'p_smtp_host', null, null, null));
    END;

    Can someone explain if it is the right method to send an email using the Oracle database? If so how can I install it?

    Thank you
    Augusto

    Oracle 10.2 comes with UTL_MAIL package.

    Give it a read through the documentation. It's pretty simple to use.

  • During the installation of Windows 7 Ultimate, get error, "the installation program could not use the existing system partition because it does not contain the need free space."

    When installing win7 ultimate, {install} error message indicates "Setup could not use the existing system partition because it does not contain the free space required... I have 500 GB free, ram 4 GB 2.4 ghz quad... any help?"

    If you have any external storage devices such as external hard drive or thumb drive, unplug them, they might interfere with installation.

  • I get "failed to set the refresh attribute COMMIT for the materialized view" when I try to create a MV using a table and another MV

    Experts,

    I'm trying to create a YOUNG refreshable ON COMMIT MV (xyz) using a table (circuit) and quickly updateable on validation MV (abc), but get an error:

    SQL error: ORA-12054: cannot set the attribute ON COMMIT refresh for the materialized view

    12054 00000 - "cannot set the refresh attribute COMMIT for the materialized view.

    * Cause: The materialized view did not meet the requirements for update to

    moment of validation.

    * Action: Specify only valid options.

    1] MV abc
    = MV abc defined as below =.

    CREATE MATERIALIZED view abc_MV

    Immediate CONSTRUCTION

    REFRESH QUICKLY YOU COMMIT using constraints of trust

    WITH ROWID AS SELECT n.*,.

    n.ROWID noderowid

    node n

    where n.nodetype in (1610000069,1610007267);


    -Above works OK and MV connect you on table node is created successfully

    =====================================================

    [ 2] Circuit Board

    ======================================================

    CREATE MATERIALIZED VIEW LOG ON Cramer.Circuit WITH SEQUENCE, ROWID ( ) -all columns of table ofcircut parentheses

    INCLUDING THE NEW VALUES;

    -More top works OK and MV connect you on table circuit is created successfully

    ======================================================



    [3] trying to create MV xyz

    ======================================================

    CREATE MATERIALIZED VIEW LOG ON cramer.abc_MV WITH SEQUENCE, ROWID ( ) -all columns of abc_MV brackets

    INCLUDING THE NEW VALUES;

    -Above works OK and log on ABC MV MV gets created successfully

    -Problematic step below

    Xyz_MV CREATE MATERIALIZED VIEW

    IMMEDIATE CONSTRUCTION

    REFRESH QUICKLY YOU COMMIT using constraints of trust

    AS

    SELECT c., c.rowid circuit_rowid, n.rowid tr_rowid

    the circuit c, abc_mv n

    where circuit2startnode = n.nodeid

    and c.rpplanId = n.rpplanId;
    ==========================================================

    Clues on how to solve this problem and make quickly updatable ON Commit MV xyz

    Thanks in advance.

    Chanchal,

    If you can read my original post carefully you may have noticed that all these restrictions will not apply in my case.

    All,

    In any case I found the solution to my problem.

    There are a few additional restrictions for materialized views multilayer

    Additional Restrictions for master materialized views

    The following types of materialized views may not be masters of editable materialized views:

    • ROWIDmaterialized views
    • Complex materialized views
    • Read-only materialized views

    I've updated the underlying MV abc below and everything worked like a charm

    CREATE MATERIALIZED view abc_MV

    Immediate CONSTRUCTION

    REFRESH QUICKLY YOU COMMIT using constraints of trust

    IN SELECT

    n.*, n.rowid noderowid, nt.rowid nodetyperowid

    the node n, nodetype_m nt

    where n.node2nodetype = nt.nodetypeid

    and nt.nodetypeid in (1610000069,1610007267);

    Note: To ADD a join without which I was getting error below (although had primary key on the table of the node)

    SQL error: ORA-23415: materialized view log for "NODE" does not save the primary key

    23415 00000 - "view the log for materialized \"%s\".\"%s\"does not save the primary key.

    * Cause: A primary key materialized view is refreshed quickly, but the

    The materialized view log does not record the primary key information.

    * Action: Use CREATING MATERIALIZED VIEW LOG... Command to add a PRIMARY KEY to

    start recording of the primary key information in the materialized view

    Newspaper.

  • Duplicate RMAN cloning using the database using the current database

    Hi all

    I am new bie, I want to clone my target database using the rman command 'DUPLICATE database OF ACTIVE DATABASE"new host.

    steps on google, I searched, but I got confused, I doubt if you need to install oracle rdbms softare on new host or not? and also should I copy all files (redo, control, datafiles) to the new host? kind LY help and tell me the steps to clone the database using rman.your help will be appreciated.

    Thank you.

    Kind regards.

    OS: RHEL 5.4

    DB: 11.2.0.3

    Hello

    Have you not through document link to Gavin at least. It's very simple steps. If you wait until other measures, then won't them.

    He had provided the demonstration, at least get in 'google' (you'll have so many links)

    The Oracle Dba Italian Blogger: how to clone an Oracle 11 g 2 home

    http://balaoracledba.com/2013/12/16/cloning-an-existing-Oracle11g-release-2-RDBMS-installation/

    Note: If you feel always complex, better skip the task itself.

    -Thank you

    Pavan Kumar N

  • SSL mutual authentication using the Oracle stored procedure

    Hello

    DB version:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    Is possible to perform mutual authentication SSL uses the Oracle stored procedure?
    I read articles and forums saying that it is not a good approach to call the Web service using the Oracle procedure (and I don't know if it's even possible authentication using procs). But I would like to know if it's possible and how.

    In other is words there a way to incorporate the client certificate information into a procedure that calls a Web service.

    I read the articles to do it in JAVA or .net. But please advice how we can achieve using Oracle procedures.

    Thank you.

    934451 wrote:

    Is possible to perform mutual authentication SSL uses the Oracle stored procedure?

    To learn more. SSL what for?

    Oracle PL/SQL only supports client standard TCP sockets. However, interface for HTTP, Oracle PL/SQL also supports HTTPS - which requires the certificates of authentication of the server to be stored in a portfolio of Oracle web and used during the transmission via HTTPS. See the code example {message identifier: = 1925297} for more details.

    I read articles and forums saying that it is not a good approach to call the Web service using the Oracle procedure (and I don't know if it's even possible authentication using procs).

    Forums and articles written by idiots. For idiots.

    And no, I'm not to embellish my response to this pitch that you met. It is false. It is written by ignorant people who don't know ANYTHING about the use of Oracle and PL/SQL. And feel free to forward my response to these idiots. They find me here if they want to argue...

    As an example of how to call a web service, see {message identifier: = 10158148} and {message: id = 10448611}.

  • the variable name of database query to SQL Server using the Oracle database link

    Hi all

    I have an ApEx 4.1 application running on x 64 (11.2.0.1) 11g on Windows Server 2008 x 64, and I have a few points of data integration with SQL (2005 and 2008) server that I need to create. I have configured the database with dg4odbc link and it works perfectly... I can run queries on the SQL Server database without any problem using the database link.

    However, there is a scenario where the SQL Server database name is dynamic, and I need to generate on the fly in a PL/SQL block and then use it in a query dynamic SQL (all this in the ApEx). It of wherever I meet problems... when I asked the default database that is based on the ODBC connection and I don't have to specify the name of the database, no problem. But when I need access to one of the several other databases by default, I received the error "invalid table.

    It works well:* (note that 'fv' is the name of my database link)

    v_query1: = "select 'Release Date' from dbo." Schedules@FV where dbo. Annexes. "" SchedID "=: calendar";
    EXECUTE IMMEDIATE v_query1 in rel_date using the grid.




    I then take this rel_date variable, convert a varchar2 (rel_date_char), then use it as the name of the database in the following query...


    _ It returns an error(error ORA-00903: invalid table name)

    v_query2: = "select"PARTNO": rel_date_char.dbo.ProdDetails@fv where 'SchedID' =: calendar and"UnitID"=: unit"
    and 'MasterKey' =: master and "ParentKey" =: parent';

    EXECUTE IMMEDIATE v_query2 in part_number using planning, master, parent unit;



    I also tried using all of the following conditions without result:

    "select"PARTNO"of" | : rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"of" | rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"of" | @rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"in @rel_date_char.dbo.ProdDetails @fv where 'SchedID'..."


    Is it possible to do it in PL/SQL?

    Thanks for any help!
    -Ian C.

    Published by: 946532 on July 15, 2012 19:45

    Just did a test using passthrough:

    SQL > set serveroutput on
    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5. start
    c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, "select count (*) from EMP");
    8 LOOP
    9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    10 output when nr = 0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    12 dbms_output.put_line (val);
    13 end of loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    15 end;
    16.
    24576

    PL/SQL procedure successfully completed.

    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5. start
    c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' select count (*) from dbo.) EMP');
    8 LOOP
    9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    10 output when nr = 0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    12 dbms_output.put_line (val);
    13 end of loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    15 end;
    16.
    24576

    PL/SQL procedure successfully completed.

    So all 3 ways work for me.

    Published by: kgronau on July 23, 2012 10:08

    Now, using the variables to make the selection:

    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5 tabname varchar2 (20): = 'EMP ';
    6 ownr varchar2 (20): = "dbo."
    7 dbname varchar2 (20): = "door";
    Start 8
    c: 9 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    10 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' SELECT count (*) FROM ': dbname: '.) ' || ownr | '.'|| tabname | ") ;
    11 LOOP
    12 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    13 when the exit nr = 0;
    14 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    15 dbms_output.put_line (val);
    16 end loop;
    17 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    18 end;
    19.
    24576

    PL/SQL procedure successfully completed.

    => instead of executing the statement using the "execute Immediate" we use the PASTHROUGH package to pass the statement to SQL Server.

    Published by: kgronau on July 23, 2012 10:10

  • Presentation of the existing database to a new machine

    I posted the question in the forum of DB and received no usable response, so I'll try this forum.
    I'm on Windows 2008 R2 x 64 platform.
    I installed a cluster of 11 GR 2 two starts for the OCR and voting disks and one for data.
    The data disks are replicated on external drives in the cluster.
    On a different node, is not part of the cluster I have installed the software from the grid.
    I seconded the diskgroup data nodes and attached the replicated to the new node.
    I installed the DB software (software option only).
    Now, I want to recognize and exploit the existing DB DB software.
    I can't find a way to do it.
    Any help is appreciated.
    Kind regards
    Fred

    Hello

    I seconded the diskgroup data nodes and attached the replicated to the new node.
    I installed the DB software (software option only).

    Configure the TNSNAMES file. ORA and SQLNET. ORA of two nodes.

    Now, I want to recognize and exploit the existing DB DB software.

    1. create directory audit_trail on each_node for example

    audit_file_dest          = %ORACLE_BASE%\admin\%ORACLE_UNIQUE_NAME%\adump)
    

    2 copy or re-create a file initfile and password on each node inside (% ORACLE_HOME%\database\) for example

    cat  initorcl2.ora
    SPFILE='+DATA/orcl/spfileorcl.ora'
    ...
    To create password file use utility %ORACLE_HOME%\bin\orapwd.exe
    filename must be  orapwd<$ORACLE_SID>
    

    3. add entries on TNSNAMES. ORA and SQLNET. Database ORA

    4 create Windows service for the Instance database with the ORADIM utility on each node:

    C:\> %ORACLE_HOME%/bin/ORADIM.exe -NEW -SID ORCL1 -INTPWD  -STARTMODE AUTO -PFILE %ORACLE_HOME%\DATABASE\INIT.ORA
    

    5. create the database configuration in the clusterware, through orders srvctl

    for example

    srvctl add database -d ORCL -o  c:\app\oracle\product\11.2\dbhome_1 -p +DATA/orcl/spfileorcl.ora -a  +DG_DATA -s open
    srvctl add instance -d ORCL -i ORCL1 -n hostname1
    srvctl add instance -d ORCL -i ORCL2 -n hostname2
    

    Kind regards
    Levi Pereira

    Published by: Levi Pereira on March 23, 2011 10:46 # changed with the appropriate procedure for the windows environment.

  • Extended Analytics - reason not to use the HFM database as the destination

    Why can't use us the HFM database as the destination database to create patterns in Star using extended Analytics? How can we get data with metadata in tables exported using EA?

    As far as I know, export EA is a star that includes metadata and data schema format?
    You don't would not export it to your database of the HFM application as you would ideally keep it separate for analsys by services such as Essbase OLAP?
    Alternatively, you can also use Oracle Hyperion Essbase Analytics Link, which creates a permanent bridge in real-time between your HFM and Essbase applications.

  • How to synchronize the data with the existing database maker?

    Hello

    is it possible to synchronize data with an existing database maker in data as Oracle designer maker
    -Connect to existing database
    -Generate a script (change if the object exist create if exists or not,...)
    -Run the script

    Thank you

    I created a quick demo and hung in [my blog: http://sueharper.blogspot.com/2009/08/updating-database-using-detail-from.html] or directly from [here: http://www.screentoaster.com/watch/stVEpWRUBIR11WRVlbXFpZVlRX/update_the_database_using_oracle_sql_developer_data_modeler]

    Sue

  • SSL VPN authentication using the ad group

    Hi all

    I tried to restrict users to authenticate to the SSL VPN using an ad server. I have install the AAA server with the IP address of the AD server and attributed to the connection profile as well; However, I see that any user who is a member of a group in AD is able to authenticate.

    I want to only users who belong to the group "VPN users" get authenticated while everyone and all those who have credentials of the AD and not even a part of the 'VPN users' group is making authenticated.

    Can someone advice how I can make the ASA authenticate users based on ad groups? I use the ASDM to configure my VPN RA.

    Thanks in advance!

    Kind regards

    Riou

    Hey riri,.

    Try to use DAP to restrict access to users who belong to a specific ad group:

    https://supportforums.Cisco.com/document/7691/ASA-8X-dynamic-access-poli...

    Use the AAA attribute "LDAP .member of" to allow access to the users belonging to a specific group and deny access to other users.

    concerning

    Eric

  • Reinstall Windows 7 pro using the existing key

    I want to reinstall Windows 7 pro on my laptop. There is no change in the material, I have to purchase a new license or can I use my existing key?

    You can reinstall using the same product key if it is a retail license or if it came preloaded with your laptop.

    You may need to reactivate by phone:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

    ----------------------

    If it came preloaded on your computer:

    New computers coming often pre-installed with Windows 7 have what is called a recovery partition. This is used to reinstall an operating system in the case of a system failure. To access it, you need to start when you start your computer by pressing a function key. This can be either F1, F2, F9, F10, F11, F12 key DEL or tab. See the manual that came with your PC for instructions on how to reinstall Windows.

    This is how the recovery partition is accessible to most popular brands...

    For Dell, press CTRL + F11 directly after switching on the device

    For HP, press F11 directly after switching on the device

    For LG, press F11 directly after switching on the device

    For Toshiba, press and hold "0" BEFORE and during the power upward

    For Acer, press and hold ALT + F10, as soon as you see the logo

    For Asus, press F9, as soon as you see the Asus logo.

    For Samsung, press F4 to the power upward...

    For Fujitsu, press the F8 key directly after the power

    Advent, restart your computer. Then, press F10 repeatedly until the message "Starting system recovery"

    Sony VAIO, reboot and press "F8" or "F10" repeatedly until the screen "Advanced Boot Options".

Maybe you are looking for