Application Express 4.0.2.00.07 apex_util.set_security_group_id exception

Hi,
I am trying to trigger apex_util.edit_user procedure.
But first I need set security group id. I queried SELECT provisioning_company_id FROM APEX_040000.wwv_flow_companies where short_name='MIS' and tried apex_util.set_security_group_id (3587726189450463).
But error is occued:
Error report:
ORA-20001: Security Group ID (your workspace identity) is invalid.
ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 3175
ORA-06512: at line 2
And also select * from apex_workspaces returned empty list... apex_util.find_security_group_id (p_workspace => 'MIS') return 0

user13830503 wrote:
Hi,
I am trying to trigger apex_util.edit_user procedure.
But first I need set security group id. I queried SELECT provisioning_company_id FROM APEX_040000.wwv_flow_companies where short_name='MIS' and tried apex_util.set_security_group_id (3587726189450463).
But error is occued:You should use:
l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MIS');
    apex_util.set_security_group_id (p_security_group_id => l_workspace_id);See http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#AEAPI512
Error report:
ORA-20001: Security Group ID (your workspace identity) is invalid.
ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 3175
ORA-06512: at line 2
And also select * from apex_workspaces returned empty list... apex_util.find_security_group_id (p_workspace => 'MIS') return 0Debug the apex_workspaces view to find out why its not showing up your workspace
I guess it will be something to do with the schema you are trying to access from!

Similar Messages

  • Print a report from Application Express direct to a CUPS Printer

    Hi all, I'm new to this technology, is it possible to print a report from Application Express directly to a CUPS Printer? Can someone tell me in laymans terms how to do it? I find the terminology and documentation less than helpful.

    Jeremy,
    BI Publisher handles submitting reports directly to a CUPS printer. However, the APEX integration doesn't currently integrate with that portion of BI Publisher.
    Here's an options:
    Use the Java API of BI Publisher to build a custom Java program that would do this for you. Delivering to CUPS is part of the Java API.
    Bryan

  • Can not login to Oracle Application Express after upgrade to 3.2

    I installed oracle database express and then I upgrade APEX to 3.2 on it. I got the login page but I can not login by using any account, like SYS, SYSTEM. From the document, internal ADMIN account should exist but I did not see it from dba_users table.
    Thanks,
    Julie

    HI Don,
    I did run apxchpwd.sql to change the Application Express ADMIN user password. Then I invoked http://mymachine:8080/apex and got the Application Express login page. I put ADMIN in workspace and ADMIN in Username and the new password. But I still cannot login. I also tried http://mymachine:8080/apex/apex_admin page login. I typed ADMIN as username and the new password. Then I clicked on Login button. Nothing happened. No error message.
    Any idea?
    By the way, what does apxxepwd.sql do?
    Thanks,
    Julie

  • Application Express Printing in 3.1 and Oracle 9i

    Hi,
    I am running Application Express 3.1 on a Oracle 9i box using application server 10.1.2 for the web server and when ever we try to do any printing to PDF files it files, changing to HTML give me the following errors; (it works fine from our 10g2 box also running Apex 3.1)
    Any ideas on this?
    Fri, 18 Apr 2008 17:45:41 GMT
    ORA-03113: end-of-file on communication channel
    DAD name: apex
    PROCEDURE : f
    URL : http://nww.infoportal.wiltshire.nhs.uk:80/pls/apex/f?p=105:7:4081603134239502428:FLOW_XMLP_OUTPUT_R383146513321010166_en-gb
    PARAMETERS :
    ===========
    p:
    105:7:4081603134239502428:FLOW_XMLP_OUTPUT_R383146513321010166_en-gb
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=nww.infoportal.wiltshire.nhs.uk
    REQUEST_METHOD=GET
    QUERY_STRING=p=105:7:4081603134239502428:FLOW_XMLP_OUTPUT_R383146513321010166_en-gb
    PATH_INFO=/f
    SCRIPT_NAME=/pls/apex
    REMOTE_HOST=
    REMOTE_ADDR=10.184.150.119
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=apex_public_user
    ORACLE_SSO_USER=
    OSSO_IDLE_TIMEOUT_EXCEEDED=
    OSSO_USER_GUID=
    HTTP_CONTENT_LENGTH=
    HTTP_CONTENT_TYPE=
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 1.1.4322)
    HTTP_HOST=nww.infoportal.wiltshire.nhs.uk
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-gb
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=ORA_WWV_R1=%23ALL; ORA_WWV_R2=%23ALL; ORA_WWV_R3=%23ALL; LOGIN_USERNAME_COOKIE=dpithouse; ORA_WWV_REMEMBER_UN=DPITHOUSE:cascard; ORA_WWV_USER=180C4AB57E701292; WT_FPC=id=2c0fb891060c298ae401208366087265:lv=1208518017286:ss=1208517692850; WWV_CUSTOM-F_6578422443884676_105=AEA5DD5F752363DA; WWV_CUSTOM-F_6578422443884676_100=180C4AB57E701292
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=http://nww.infoportal.wiltshire.nhs.uk/pls/apex/f?p=105:7:4081603134239502428:::::
    HTTP_SOAPACTION=
    HTTP_ORACLE_ECID=1208540734:10.162.200.150:1328:5536:2513,0
    HTTP_ORACLE_CACHE_VERSION=
    HTTP_AUTHORIZATION=
    WEB_AUTHENT_PREFIX=
    DAD_NAME=apex
    DOC_ACCESS_PATH=docs
    DOCUMENT_TABLE=wwv_flow_file_objects$
    PATH_ALIAS=
    REQUEST_CHARSET=WE8MSWIN1252
    REQUEST_IANA_CHARSET=WINDOWS-1252
    SCRIPT_PREFIX=/pls
    HTTP_IF_MATCH=
    HTTP_CACHE_CONTROL=
    SOAP_BODY=
    HTTP_X_ORACLE_DEVICE_CLASS=
    HTTP_X_ORACLE_DEVICE_ORIENTATION=
    HTTP_X_ORACLE_DEVICE_MAXDOCSIZE=
    HTTP_X_ORACLE_DEVICE=
    HTTP_X_ORACLE_ORIG_ACCEPT=
    HTTP_X_ORACLE_ORIG_USER_AGENT=
    HTTP_X_ORACLE_USER_LOCALE=
    HTTP_X_ORACLE_USER_NAME=
    HTTP_X_ORACLE_USER_DISPLAYNAME=
    HTTP_X_ORACLE_USER_USERKIND=
    HTTP_X_ORACLE_USER_AUTHKIND=
    HTTP_X_ORACLE_USER_DEVICEID=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE1=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE2=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLASTLINE=
    HTTP_X_ORACLE_USER_LOCATION_BLOCK=
    HTTP_X_ORACLE_USER_LOCATION_CITY=
    HTTP_X_ORACLE_USER_LOCATION_COMPANYNAME=
    HTTP_X_ORACLE_USER_LOCATION_COUNTY=
    HTTP_X_ORACLE_USER_LOCATION_STATE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODEEXT=
    HTTP_X_ORACLE_USER_LOCATION_COUNTRY=
    HTTP_X_ORACLE_USER_LOCATION_TYPE=
    HTTP_X_ORACLE_USER_LOCATION_X=
    HTTP_X_ORACLE_USER_LOCATION_Y=
    HTTP_X_ORACLE_SERVICE_HOME_URL=
    HTTP_X_ORACLE_SERVICE_PARENT_URL=
    HTTP_X_ORACLE_HOME_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_LABEL=
    HTTP_X_ORACLE_CACHE_USER=
    HTTP_X_ORACLE_CACHE_SUBID=
    HTTP_X_ORACLE_CACHE_AUTH=
    HTTP_X_ORACLE_CACHE_DEVICE=
    HTTP_X_ORACLE_CACHE_LANG=
    HTTP_X_ORACLE_CACHE_ENCRYPT=
    HTTP_X_ORACLE_ASSERT_USER=

    Unfortunately I can't provide much help, other than that we have seen this before with 9iR2, but haven't yet figured out when this does occur, so not sure if it's related to a specific patch version. If possible, I'd recommend upgrading to database 10g or higher. And if we do figure out under what circumstances this problem comes up in 9iR2, I'll post this on the forum.
    Regards,
    Marc

  • SSO Authentication for more than one application in Application Express

    Hello,
    I recently got a single application working with SSO integration for Application Express 2.2.
    Now I would like to create multiple applications within the same workspace, which all use SSO authentication. I tried both copying the working one from the other application and creating a new SSO authentication scheme from scratch into the new aplication.
    I cant seem to make the new application work with SSO authentication. Do I have to go through all of the same steps I went through to get it working with the first application?
    Thanks
    -sean

    Ok, my bad.
    After shutting down my web browser and reopening it, the SSO integration now works for both the old and new applications. Not sure what was cached, but it was bypassing the sso check.

  • Upgrading Application Express on Oracle XE (installed on Ubuntu 8.04)

    I'd installed on my laptop (OP is Ubuntu 8.04) Oracle XE and is wotking quite fine.
    But I really like to upgrade apex to last version (3.1.2). I read documentation but are not many information about how to upgrade.
    Daniel

    Thanks Arie,
    On whatever version of Windows I've updated without problems Application Express.
    I'm talking here about Ubuntu (a debian distribution of Linux).
    My problem is where to unzip apex, where to use sqlplus command prompt etc., because is different than Windows.
    If you don't have DBA rights on the account (user account other than root) you have errors in installation process and more.
    For example they say in doc...:0
    "To run the apxconf.sql configuration script:
    1. Change your working directory to ORACLE_BASE\ORACLE_HOME\apex or whatever convention used to indicate the Oracle home.
    2. Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS. For example:
    * On Windows:
    SYSTEM_DRIVE:\ sqlplus /nolog
    SQL> CONNECT SYS as SYSDBA
    Enter password: SYS_password
    * On UNIX and Linux:
    $ sqlplus /nolog
    SQL> CONNECT SYS as SYSDBA
    Enter password: SYS_password".....
    When you install Oracle what version you need, OP (Linux) create a different user account for Oracle. Usually if you want to use your account like dba for oracle, you need to give to that account the proper rights.
    So, I need a installation rutine (for upgrading) for apex on Linux.

  • Problem with apex listener install on Oracle Application Express 4.2.3

    I have installed Oracle Application Express 4.2.3
    Then i tried to install apex listener  Oracle APEX Listener 2.0.5
    but it dos not work.
    I ask
    It is possibile to install  WebLogic Server 12c or 11c
    and connect it to apex ??

    Hi;
    Please check Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1] and compare it wiht your steps
    Regard
    Helios

  • Problem with Application Express

    Good Morning,
    I installed Oracle Application Express, but I have a problem with the first login and the creation of my workspace.
    During login using the username 'admin' and pwd as the sys's user because until now the only pwd I configure when I installed Oracle Express 10g and Oracle Application Express.
    When I go to login, the page seems not to take any command.
    I look a your help. Thanks

    Check out the {forum:id=137} forum you'll probably get better help there.
    By the way, welcome to the forum! :)

  • Problem with logon in to Application Express

    I have successfully installed oracle Application Express
    When I logged in to Oracle Application Express Administration Services for the first time he asked me to change password.
    After I changed the password I can't log in to the application any more with the new password .
    When I enter the user name and the new password no action happen,
    Although when I enter any wrong password, a message with Invalid Login Credentials appear
    User Name: admin
    Old password: password
    New password: oracle
    Thanx

    Hi Scott
    Same results in both IE and FF?
    I have only IE
    Do you have cookies enabled in the browser?
    Yes cookies are enabled in the browser
    Does the login page have only two text fields , username and password?
    Yes
    When you say "no action happen" does that mean you just see the login page all the time or do you see a blank page or something else?
    Yes I just see the login page all the time
    Thanx

  • Unable Logging in to Oracle Application Express Administration Services

    I am new for DB. Installed Oracle XE, followed the instruction "Logging in to Oracle Application Express Administration Services", I can not find the login page:
    http://127.0.0.1:7777/pls/apex/apex_admin
    I work on the PC in which XE installed.
    Where are these two files
    ORACLE_BASE\ORACLE_HOME\install\portlist.ini
    ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf\httpd.conf
    I did a search, can't find them.
    Any help welcome.
    Thanks.

    The default port for the Apex webserver is 8080, not 7777.
    To access the XE Database GUI from the Start menu, select Programs (or All Programs), then Oracle Database 10g Express Edition, and then Go to Database Home Page. (I'm assuming your on Windows)
    Or try: http://localhost:8080/apex in your browser.
    The files you mention relate to Apache web server. Oracle XE does not include a Apache, it's web server is built into the database. Are you sure you're following the right documentation? See http://www.oracle.com/pls/xe102/homepage
    Hope this helps.

  • Need help on installing Oracle Application express 3.2

    Hi,
    I had downloaded Oracle 11g database and installed the personal edition.I got the Enterprise manager login page working and also the DBConsole
    I had Downloaded APEX 3.2 and wanted to install apex 3.2.I wanted to do the following scenario
    Scenario 3: Install from the Database and Configure the Embedded PL/SQL
    Gateway
    Planning to do these steps: ( I have few questions on these steps and are below each step)
    ■ Running the apxconf.sql Configuration Script
    Do I have to install Oracle Application express or is it already installed in 11g personal edition?
    Do I have to create a seperate database or schema for this step( I have only one instance orcl1) ?■ Verifying the Oracle XML DB HTTP Server Port
    Can I do this step in my current orcl1 instance,if so which user■ Enabling Oracle XML DB HTTP Server
    Once I carry out these steps, Can I access the admin page for apex with https://localhost:port/apex_admin ?
    Am I missing any other steps ?
    Thanks

    I have one idea..
    Try to install again:
    1) download and unzip apex_3.2 in $ORACLE_HOME
    You will have:
    $ORACLE_HOME/apex - old directory
    $ORACLE_HOME/apex_3.2 - new directory
    2) in command line go to $ORACLE_HOME/apex_3.2/apex
    run sqlplus "/as sysdba"
    in sqlplus run @apexins tablespace_apex tablespace_files tablespace_temp images
    Where:
    tablespace_apex is the name of the tablespace for the Oracle Application Express application user.
    tablespace_files is the name of the tablespace for the Oracle Application Express files user.
    tablespace_temp is the name of the temporary tablespace.
    images is the virtual directory for Oracle Application Express images. To support future Oracle Application Express upgrades, define the virtual image directory as /i/.
    Example:
    @apexins SYSAUX SYSAUX TEMP /i/
    3) check installation log for errors
    4) in command line go to $ORACLE_HOME/apex_3.2/apex
    run sqlplus "/as sysdba"
    in sqlplus run @apxconf
    set admin password
    set port
    5) run @apxldimg.sql $ORACLE_HOME/apex_3.2
    6) check for running listener and try to login apex: http:\\host:port\apex\apex_admin
    Good luck!

  • How do I create "Oracle Application Express Adminstrator" in APEX 3.2.1?

    Hello,
    Quite the newbie so I appreciate any assistance with this.
    How do create "Oracle Application Express Adminstrator" in APEX 3.2.1? I am not talking about a workspace adminstrator but an Entire APEX instance administrator or "superuser"?
    I log into APEX_ADMIN as ADMIN and understand how to create a new user. But how do I grant the new user DBA or "super user" privlidges? It was easy to do when I first installed XE, I would just "check" the "DBA" when I created the user. But when I upgraded to APEX 3.2.1 the function does not seem to be there?
    Thank you for any help you can provide!

    Hi,
    I think you can not grant DBA role from Apex anymore.
    You need connect to database e.g. with SYS user and grant that role.
    http://www.oracle.com/technology/products/database/application_express/html/3.2_and_xe.html
    Br, Jari

  • Application Express Install - Login and images don't work

    I followed the instructions (as best I understood them) to install Apex on my database, and then setup an Oracle HTTP server to work with it.
    The problems I have are:
    When i goto the "first" page, which for me is: http://tomcatvs01.traxusers.com:7777/pls/apex/apex_admin
    1. The "Application Express" image at the top doesn't come out, which indicates to me the images weren't setup correctly, despite my best efforts.
    2. I'm not sure what my "username" should be. I remember specifying a desired password when I ran the sql to install the Apex on the database, but I don't remember specifying a username. I assume it is: APEX_PUBLIC_USER
    3. The big problem... whatever Username/password I use, "nothing" happens when I click the "Login" button. With MSIE, it shows the exclamation "error on page." icon on lower left side when I click "Login", which details show this error message:
    Line: 1
    Char: 1
    Error: Object expected
    Code: 0
    URL: My URL given above, but mixed with what appears to be the session ID, which is the same URL that i'm taken to when I goto the page in the first place.
    It doesn't work with FireFox either, and I've tried the client/browser from multiple machines.
    Advice appreciated.
    My setup is to use an Oracle 10g release 02 database.
    I installed Oracle HTTP server from the Companion CD on another machine, which already had an Oracle home/client of it's own.
    I then installed APEX sql on the database (i first ran the webtoolkit sql) .
    On the machine I put the HTTP server on, I copied the apex images to: E:\oracleHTTP\product\10.2.0\db\Apache\Apache\images
    And I configured my dads.conf file (in E:\oracleHTTP\product\10.2.0\db\Apache\modplsql\conf) as such:
    # ============================================================================
    # mod_plsql DAD Configuration File
    # ============================================================================
    # 1. Please refer to dads.README for a description of this file
    # ============================================================================
    # Note: This file should typically be included in your plsql.conf file with
    # the "include" directive.
    # Hint: You can look at some sample DADs in the dads.README file
    # ============================================================================
    Alias /i/ "E:\oracleHTTP\product\10.2.0\db\Apache\Apache\images\"
    AddType text/xml xbl
    AddType text/x-component htc
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlDatabaseConnectString proddb01.traxusers.com:1521:trax ServiceNameFormat
    PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDefaultPage apex
    PlsqlDatabasePassword apex
    Allow from all
    </Location>

    OKay, I kept reading other people's posts and I found the main culprit of my problems. I needed to add a forward-slash to my images directory specification in my dads.conf file. Now my images come out, and my login button "works".
    However, I still can't login because i don't know the username (at least now it tells me the credentials are not correct!)
    What is the username? I remember when running the @apexins SQL, i specified the password. But I don't remember every specifying a username, I even reviewed the instructions and couldn't find where I might have defined that. Please help! Can i extract it from one of the tables that was created? If so, I'd appreciate pointers as to which one exactly.

  • Code 128 Barcode printed from Application Express

    Hi,
    My colleague and I have written a procedure to generate Code128 Barcodes. These appear fine on the screen within Application Express 3. But when we export the file as an RTF or PDF document to our BI_Publisher server running under LINUX RedHat the Barcodes are greyed out and cannot be seen.
    Anyone any ideas on how to solve this? It is extremely irritating only to be able to offer our users the ability to print the Application Express page off rather than a proper document.
    Thanks

    Hi kcbemssr,
    I don't know weather you can see this reply, but i still want to say something about this.
    Did you used another type of code 128?
    you can try this. and here is a site i recommand you, it's all about barcode, you can get code 128
    [Content Removed]

  • Inserting values in a table from a view report in Application Express

    Hello.
    I have several tables with the sql bellow:
    Employee
    CREATE TABLE "Employee"
    (     "Employee_ID" NUMBER,
    "Name" VARCHAR2(12) CONSTRAINT "NAME_EMPLOYEE_NN" NOT NULL ENABLE,
    "Surname" VARCHAR2(10) CONSTRAINT "SURNAME_EMPLOYEE_NN" NOT NULL ENABLE,
    "Address" VARCHAR2(50) CONSTRAINT "ADDRESS_EMPLOYEE_NN" NOT NULL ENABLE,
    "Telephone" VARCHAR2(10),
    "Personal_ID_Number" VARCHAR2(13),
    "Date_of_Employment" VARCHAR2(10) CONSTRAINT "DATA_NN" NOT NULL ENABLE,
    "Salary" NUMBER(6,0),
    CONSTRAINT "Employee_ID_con" PRIMARY KEY ("Employee_ID") ENABLE,
    CONSTRAINT "Employee_CON" UNIQUE ("Personal_ID_Number", "Telephone") ENABLE
    Patient
    CREATE TABLE "PATIENT"
    (     "Patient_ID" NUMBER,
         "Name_Patient" VARCHAR2(13) CONSTRAINT "NAME_PAT_NN" NOT NULL ENABLE,
         "Surname_Patient" VARCHAR2(10) CONSTRAINT "SURNAME_PAT_NN" NOT NULL ENABLE,
         "ADSRESS_PATIENT" VARCHAR2(50),
         "TELEPHONE_PATIENT" VARCHAR2(10) CONSTRAINT "TEL_PAT_NN" NOT NULL ENABLE,
         "EMPLOYEE_ID" NUMBER CONSTRAINT "DENTIST_PAT_NN" NOT NULL DISABLE,
         CONSTRAINT "PK_PATIENT" PRIMARY KEY ("PATIENT_ID") ENABLE,
         CONSTRAINT "PACIENT_CON" UNIQUE ("TELEFON_PACIENT") ENABLE
    ALTER TABLE "PATIENT" ADD CONSTRAINT "PATIENT_CON3" FOREIGN KEY ("Employee_ID")
         REFERENCES "Dentist" ("Employee_ID") ON DELETE SET NULL ENABLE
    Appointment
    CREATE TABLE "Appointment"
    (     "Appointment_ID" NUMBER,
         "Employee_ID" NUMBER CONSTRAINT "NN_Dentist_Appointment" NOT NULL ENABLE,
         "Patient_ID" NUMBER CONSTRAINT "NN_PATIENT_Appointment" NOT NULL ENABLE,
         "Who_Made" NUMBER,
         "Who_Changed" NUMBER,
         "Who_Canceled" NUMBER,
         "Content" VARCHAR2(1000),
         "DATE" DATE,
         CONSTRAINT "PK_Appointment" PRIMARY KEY ("Appointment_ID") ENABLE
    ALTER TABLE "Appointment" ADD CONSTRAINT "Appointment_CON" FOREIGN KEY ("Patient_ID")
         REFERENCES "PATIENT" ("Patient_ID") ENABLE
    ALTER TABLE "Appointment" ADD FOREIGN KEY ("Employee_ID")
         REFERENCES "Dentist" ("Employee_ID") ENABLE
    ALTER TABLE "Appointment" ADD FOREIGN KEY ("Who_Made")
         REFERENCES "Employee" ("Employee_ID") ENABLE
    ALTER TABLE "Appointment" ADD FOREIGN KEY ("Who_Changed")
         REFERENCES "Employee" ("Employee_ID") ENABLE
    ALTER TABLE "Appointment" ADD FOREIGN KEY ("Who_Canceled")
         REFERENCES "Employee" ("Employee_ID") ENABLE
    Dentist
    CREATE TABLE "Dentist"
    (     "Employee_ID" NUMBER,
    "Qualifications" VARCHAR2(50),
    CONSTRAINT "RB_VRAB_STOMATOLOG_PK" PRIMARY KEY ("Employee_ID") ENABLE
    ALTER TABLE "Employee_ID" ADD CONSTRAINT "Dentist_CON" FOREIGN KEY ("Employee_ID")
    REFERENCES "Employee" ("Employee_ID") ON DELETE CASCADE ENABLE
    I'm trying to make an application in Oracle Application Express and I've tried making an SQL report using the following SQL query:
    CREATE OR REPLACE FORCE VIEW "Appointment_REPORT" ("DOCTOR", "PATIENT", "Content", "Date") AS
    select concat(concat(v.name,' '),v.surname) as doctor, concat(concat(pa.name_patient,' '),pa.surname_patient) as pactent, p.content, p.date
    from Appointment p, Amployee v, Patient pa
    where
    v.employee_id=p.employee_id
    and p.patient_id=pa.patient_id
    The SQL works fine and gives me lovely results in my report. However, I don't know how to link the SQL to my actual Appointment table. Deleting, updating or creating new appointments through this view is impossible because I get the following error Unexpected error, unable to find item name at application or page level.
    I understand how to make a form on the Appointment table but given how that table contains lots of primary keys (numbers) it's not preferable for the user to have to deal with that.
    Can I have some help with linking the two and making it functional?
    Thanks in advance.

    982909 wrote:
    Hello.
    I have several tables with the sql bellow:You are digging yourself a DEEP hole by using double quote marks & Mixed Case table & column names!
    >
    CREATE TABLE "Appointment"
    (     "Appointment_ID" NUMBER,
         "Employee_ID" NUMBER CONSTRAINT "NN_Dentist_Appointment" NOT NULL ENABLE,
         "Patient_ID" NUMBER CONSTRAINT "NN_PATIENT_Appointment" NOT NULL ENABLE,
         "Who_Made" NUMBER,
         "Who_Changed" NUMBER,
         "Who_Canceled" NUMBER,
         "Content" VARCHAR2(1000),
         "DATE" DATE,
    AVOID using Reserved Words like "DATE" as column or table names!
    >
    I'm trying to make an application in Oracle Application Express and I've tried making an SQL report using the following SQL query:
    CREATE OR REPLACE FORCE VIEW "Appointment_REPORT" ("DOCTOR", "PATIENT", "Content", "Date") AS
    select concat(concat(v.name,' '),v.surname) as doctor, concat(concat(pa.name_patient,' '),pa.surname_patient) as pactent, p.content, p.date
    from Appointment p, Amployee v, Patient pa
    where
    v.employee_id=p.employee_id
    and p.patient_id=pa.patient_id
    The SQL works fine and gives me lovely results in my report. However, I don't know how to link the SQL to my actual Appointment table. Deleting, updating or creating new appointments through this view is impossible because I get the following error Unexpected error, unable to find item name at application or page level.
    I understand how to make a form on the Appointment table but given how that table contains lots of primary keys (numbers) it's not preferable for the user to have to deal with that.
    Any table can have only ONE Primary Key.
    Can I have some help with linking the two and to which "two" do you refer?
    making it functional?Since you have told us what functionality is desired or expected,
    I don't know what might be a solution.

Maybe you are looking for

  • Ouch.

    So I turn on my Ipod nano today, only to find a nasty white line in the screen. It's about a 3pixel thick white line going across horizontal in the center of my screen, It ***** My question is, I have no receipt, its less then a year old, is there a

  • Correlating VPN assigned IP address with particular users - CSACS and ASA

    We have an ASA running 7.0(6)8 and use CSACS v4.1 For remote access, we have VPN groups set-up on the ASA. Our remote users connect to our network, are authenticated via the CSACS server, then are assigned an IP address from the relevant address pool

  • How to delete characters to the right of the cursor position

    On a PC, the <Delete> key deletes characters to the right of the cursor, while <Bkspace> does the same for characters on the left. On the MAC, the <Delete> key removes only characters to the left of where the cursor is, and there is no <Bkspace> key.

  • Flash player on a network -how can i do this?

    Hi everyone, I am trying to get Flashplayer onto some other computers on my network. However they do not have internet access and so I need to put the flash player on for them (so they can use interactive whiteboard content). How can i get the player

  • To find delivery and invoice no

    How to find delivery and invoice no for given range of sales order no?