UI defaults on SQL Workshop

What type of table is added to 'Tables with UI Defaults' list on SQL Workshop?
After installing a new htmldb, EMP table have already been listed on it. However, behavior when tables are created using Data Workshop is different, some goes into the list and some do not.
Any suggestions.
Thanks in advance,
Rui

Rui,
For a table to added to the UI defaults list, you need to browse the table first and then in the Tasks region click "Manage UI defaults"
Sergio

Similar Messages

  • HTML DB SQL Workshop Output to csv Max Row Count

    I am using HTML DB 1.6 with Oracle 10g 10.1.0.3.0 On SuSE Linux Enterprise Server 9.
    When I execute a query in SQL Workshop SQL Command Processor that returns a result set of greater than 5,000 rows and click the Output to Excel link, it exports NO MORE than 5,000 records.
    In working through Metalink with Oracle Tech Support, apparently for Reports in HTML DB there is a way to change the Max Row Count default limitation of 5,0000. However, this isn't in a report. It is simply from the query results page in SQL Workshop. Tech Support has been unable to idnetify ANYWHERE where I can change the default Max Row Count for simply outputting the results to csv format through the Output to Excel link.
    I am desperately looking for where I can globally change this default that will allow me to use SQL Worskshop to output greater than 5,000 records from within SQL Workshop.
    Thanks for you help!
    Mike

    hi mikes--
    that sqlworkshop 5k row limit issue was corrected in htmldb 2.0. in 1.6.x, i'm pretty sure you're always limited to 5k no matter what you select for that Max Rows attribute.
    regards,
    raj

  • LOV shows no results, but SQL Workshop does.

    Hello,
    I am using a select list with a named LOV. The select statement returns results when executed with SQL Workshop, but when I use the named LOV with any select item it allways shows no results.
    I already checked the assigned schema and everything seems to be correct.
    Is this a bug in APEX 3.2.1 ?
    Best regards
    Tareq

    I would try a couple of things:
    1. Trying passing the query into a report region to get a better look at what it is returning - at least it will rule out a problem with LOV per se i.e. if it doesn't run as a straight report then we know its query-related.
    2. create a before header process to output the value of apex_util.get_default_schema to ensure that a valid value is returned. Something along these lines:
    begin
       wwv_flow.debug('apex_util.get_default_schema: '|| nvl(apex_util.get_default_schema,'invalid value');
    end;If you re-run the page with 'Debug' switched on, you should see if a result is returned - this may well return a different value to what you were expecting.
    On that note, obviously I have no idea what your application is trying to ultimately achieve, but I wonder if the default schema user is what you are looking for. The reason I say this is surely you would always have the same user (namely 'PUBLIC' or whatever DAD user you use to link to your oracle db) - unless you have multpile DADs and different instances referencing the same p_users_db table, I don't see how this is helpful to you.
    Edited by: JoelC on 26-Apr-2010 09:19

  • User has no privileges on the schema when entering SQL Workshop

    I installed Oracle Apex 4.0 and created a workspace in a new schema called APEX_TEST. Later on I reassigned the workspace to the existing schema TEST and then when an admin or developer user clicks on the SQL Workshop button this error appears :
    Help
    ORA-20000: User FARS has no privileges on the APEX_TEST schema.
    The user still has access to the object browser or SQL Commands pages but there are no object or SQL result showing.
    Did I forget to give a privilege from TEST to APEX ? If I can't resolve the issue I can create another workspace this is only a testing workspace.
    Thank you
    Francis

    I tried to match the APEX user default schema with the workspace new schema and still had the same error. The error appears even if I give access on multiple workspace to the user.
    If I change them both to the APEX_TEST it works but the user cannot access the objects in the TEST schema without synonyms.
    The best thing to do would be to create a new schema and start over again ou export/import the applications.
    Edited by: APQ on Jul 15, 2010 2:16 PM

  • DATE arithmetic in SQL Workshop v SQL Developer - different results

    Hi
    I want a date picker to default to the Monday of the current week. I'm basing it on TO_CHAR with a format mask so this should give me the number of the day of the week:
    SELECT SYSDATE, to_char(SYSDATE, 'D')
    FROM dual
    In APEX SQL Workshop, I get
    09/25/2013  4
    which is wrong - today is Wednesday.
    The same code in SQL Developer gives
    25-SEP-13  3
    which is correct.
    Am I missing some APEX setting here which determines when the start of the week is (Monday v Sunday)?
    Many thanks
    Brian
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    APEX 4.2.2.00.11
    Windows 2008 R2 Enterprise Server

    I'm guessing this: (from Oracle documentation)
    The datetime format element D returns the number of the day of the week (1-7). The day of the week that is numbered 1 is specified implicitly by the initialization parameter NLS_TERRITORY.
    For me:
    select sysdate, to_char(sysdate,'D'), to_char(sysdate,'Day')  from dual;
    25-SEP-13    4    Wednesday
    Which is (for me) correct. (Sunday == 1 )
    What have we learned?
    NLS_TERRITORY can be different depending on who/how/when the DB connection is made.
    This is the same as NLS_DATE_FORMAT.
    Solution:
    Never ever trust anything that depends on them unless the code explicitly sets the value.
    This is why you ALWAYS provide the date format when converting from String to Date using the TO_CHAR();
    MK

  • SQL Report not showing data - available in SQL Workshop and SQL Developer

    I am having an issue with developing a SQL Report in APEX 3.2.1. I run the code in both SQL developer and SQL Workshop and I get data pulled back (both against my development environment). When I run the same code in a SQL Report region, it returns no data available. Does anyone have any idea what would be causing this? Other regions on the page accessing different tables in the same schema return data without issue. Any help would be appreciated.
    Thanks
    Freddie

    Could you explain the last comment a bit more. Here is a bit more info just in case I touch on the info with it. The db schema is BPAMGR, the Workspace is BPAMGR. We use the same schema for all of our reporting. All of our tables are in the same schema. We don't use any tables outside of this schema. Our APEX workspace has been associated to only this schema. The tables are able to be queried by SQL Workshop in the same APEX instance that the report application is under.
    Freddie

  • Select works in SQL Workshop, but not as an LOV

    I want all venues to appear in my LOV
    With their affiliated Performing Arts Center, if one exists.
    I get the perfect results when I run it in SQL Workshop.
    When I try to create the LOV, I'm told it's invalid, because it includes an in-line query and the first FROM clause must not belong in the in-line query.
    Not quite sure what it means, but I'm sure I don't know how to fix it...
    SELECT
    v.VENUE_NAME, p.pac_name d,
    v.VENUE_ID r
    from pac p, VENUES v
    where v.venue_pacid = p.pac_id(+)
    thanks
    Marion

    I'm told it's invalid, because it includes an in-line query and the first FROM clause must not belong in the in-line query.Think that's just an example of why a query might be invalid, as this query clearly doesn't have that.
    Jari's right, it has to only return 2 columns, so the venue and PAC values need merged somehow, like:
    SELECT
             v.VENUE_NAME || nvl2(p.pac_name, ' (', null) || p.pac_name || nvl2(p.pac_name, ')', null) d,
             v.VENUE_ID r
    from     pac p, VENUES v
    where    v.venue_pacid = p.pac_id (+)

  • Difference of sql query in SQL Workshop and SQL Report (case when sum(...

    Hi ,
    I need some help, pls.
    The follwg report runs in SQL Workshop - but gives errors in the sql-query report in HTMLDB:
    SQL-Workshop:
    select
    case
    when SUM(S.POTENTIAL_GROWTH)> 1 and SUM(S.POTENTIAL_GROWTH) < 4 then 'Ok'
    when SUM(S.POTENTIAL_GROWTH)> 4 and SUM(S.POTENTIAL_GROWTH) < 8 then 'SoSo'
    when SUM(S.POTENTIAL_GROWTH)> 8 and SUM(S.POTENTIAL_GROWTH) < 12 then 'Very Good'
    else 'too much'
    end
    from "SEGMENTATION" S
    In an HTMLDB SQL-Query Report I added Aliases (as requested for HTML) but still gives the error:
    <<Query cannot be parsed, please check the syntax of your query. (ORA-00920: invalid relational operator) >>
    the code:
    select
    case
    when SUM(S.POTENTIAL_GROWTH) pot_growth > 1 and SUM(S.POTENTIAL_GROWTH)pot_growth < 4 then 'Ok'
    when SUM(S.POTENTIAL_GROWTH)pot_growth > 4 and SUM(S.POTENTIAL_GROWTH)pot_growth < 8 then 'SoSo'
    when SUM(S.POTENTIAL_GROWTH)pot_growth > 8 and SUM(S.POTENTIAL_GROWTH)pot_growth < 12 then 'Very Good'
    else 'too much'
    end
    from "SEGMENTATION" S
    any halp from the gurus wud be very much appreciated.
    TIA
    Bernhard

    Still you did not give the alias for the case when column. For that only you should give the alias
    select
    case
    when SUM(S.POTENTIAL_GROWTH) pot_growth &gt; 1 and SUM(S.POTENTIAL_GROWTH)pot_growth &lt; 4 then 'Ok'
    when SUM(S.POTENTIAL_GROWTH)pot_growth &gt; 4 and SUM(S.POTENTIAL_GROWTH)pot_growth &lt; 8 then 'SoSo'
    when SUM(S.POTENTIAL_GROWTH)pot_growth &gt; 8 and SUM(S.POTENTIAL_GROWTH)pot_growth &lt; 12 then 'Very Good'
    else 'too much'
    end "GROWTH"
    from "SEGMENTATION" S

  • Java Stored Procedure via Function Give 0RA 600 from SQL Workshop and App

    Hi,
    Anyone experienced stored procedures or functions failing when called from APEX app or SQL Workshop ( ora 600 ) yet they work fine when called from SQLPlus?
    Sqlplus connected as my apex workspace schema owner:
    select net_services.test_db_connection_via_ldap(
    'APEXPRD1', 'test1', 'test1', null ) as result from dual;
    RESULT
    The database connection attempt was SUCCESSFUL
    From Apex Sql Worshop:
    select net_services.test_db_connection_via_ldap(
    'APEXPRD1', 'test1', 'test1', null ) as result from dual;
    ORA-00600: internal error code, arguments: [16371], [0x434B08150], [0], [], [], [], [], [], [], [], [], []
    NOTE: Same result when run in response to button push on page in application.
    Apex Version: 3.2.1.00.10
    Oracle Version: 11.1.0.7.0
    NOTE: I am using the embedded plsql gateway; was going to try NOT using it to see if it was shared server related (seemed to be from trc files)
    Any ideas?
    Since the code works from sqlplus, I know that it's good: Here some snippets
    -- ========================================================================================
    public class NetServices extends Object {
    public static String doTestDbConnectionViaLdap
    String piDbConnUrl,
    String piUserName,
    String piUserPassword
         String vResult = null;
    try
         Connection conn = null;
         OracleDataSource ods = new OracleDataSource();
         ods.setUser( piUserName );
         ods.setPassword( piUserPassword );
         ods.setURL( piDbConnUrl );
         conn = ods.getConnection();
         conn.close();
         vResult = "The database connection attempt was SUCCESSFUL";
    } catch ( SQLException e )
         int vErrCode = e.getErrorCode();
         String vErrMsg = e.toString();
              if ( vErrCode == 1017 ) {
              vResult = "The database connection attempt FAILED! Incorrect Username or Password";
         } else if ( vErrCode == 17433 ) { // Null Username or Password
              vResult = "The database connection attempt FAILED! You must provide both a Username and a Password";
         } else if ( vErrCode == 17002 ) {
              vResult = "The database connection attempt FAILED! Net Service Name was Not Found";
         } else if ( vErrCode == 17067 ) { // NULL Net Service Name
              vResult = "The database connection attempt FAILED! You must provide a Net Service Name";
         } else {
              vResult = "The database connection attempt FAILED! Error " + vErrCode;
    return vResult;
    } // method: doTestDbConnectionViaLdap
    -- ========================================================================================
    function do_test_db_connection_via_ldap
    pi_db_conn_url IN VARCHAR2,
    pi_user_name IN VARCHAR2,
    pi_user_password IN VARCHAR2
    return VARCHAR2
    is -- PRIVATE to the net_services package
    language java -- NOTE: See cr_java_class_NetServices.sql for actual java implementation
    name 'NetServices.doTestDbConnectionViaLdap
    ( java.lang.String, java.lang.String, java.lang.String ) return java.lang.String ';
    -- ========================================================================================
    function test_db_connection_via_ldap
    pi_net_service_name IN VARCHAR2,
    pi_user_name IN VARCHAR2,
    pi_user_password IN VARCHAR2,
    pi_search_base IN VARCHAR2
    return VARCHAR2
    is -- PUBLIC procedure
    v_url      VARCHAR2(256);
    begin
    g_err_source := 'NET_SERVICES.test_db_connection_via_ldap';
    g_err_action := 'build_jdbc_conn_url_using_oid';
    /*     NOTE: We don't want to assert the parameters because we don't want to raise
    an exception;
    -- Get the jdbc connection url that uses oid info
    v_url := build_jdbc_conn_url_using_oid( pi_net_service_name, pi_search_base );
    return( do_test_db_connection_via_ldap( v_url, pi_user_name, pi_user_password ) );
    end test_db_connection_via_ldap;
    -- ========================================================================================
    Thanks in advance for your consideration.
    Troy

    Troy:
    You could be right in your guess that the error is related to MTS. Search Metalink for '16371'. Why not switch your APEX app to use OHS and test whether the error persists. ?
    varad

  • Copy and Paste in an Application (like sql-workshop)

    Hey,
    i would like to implement a functionality to copy & paste (similar to sql workshop) data from an excell sheet into a formular.
    by submitting this formular i want to create a set of data after the 'tab' dividing.
    its not comma seperated. because its coming from an excelll-sheet.
    Does anybody know a solution
    PS: Or how i read an array to the tab sign and put this string in a select statement.
    greets phil
    Message was edited by:
    user557004

    Hi,
    How about the issue now, is it solved?
    This issue might be caused by her user profile. What the result would be if using another user account to log on her computer to test this issue.
    Also do you have the same problem when you open excel in Safe Mode?
    Try opening Excel without any Add-ins or hidden workbooks:
    Press and hold the CTRL key, and then click the excel program.
    Best Regards,
    Wind

  • Executing pl/sql procedure in SQL Workshop

    Hello.
    My understanding is that the only way to execute a pl/sql procedure in the SQL Workshop is via SQL Scripts, because running it under SQL Commands causes
    "ORA-00900: invalid SQL statement".
    Here is the statement I would like to run:
    execute efax_letter_to_pharmacist ('8888888888','ASDFSFSFSF','1','APN123456789','81');
    and here is the message I get when I run it under SQL Scripts:
    You have requested to run a script that does not contain any runnable statements.
    Script Name TEST
    Created on 02/14/2008 10:47:15 AM by ADMIN
    Updated on 02/14/2008 10:56:45 AM by ADMIN
    Number of Statements 0
    Script Size in Bytes 86
    thanks
    Boris

    Boris,
    Execute is a SQL*Plus command.
    It should work if you call your procedure in a begin-end block. e.g:
    begin
      efax_letter_to_pharmacist ('8888888888','ASDFSFSFSF','1','APN123456789','81');
    end;

  • SQL workshop Data Model

    It seems like the data model in sql workshop (where is shows a diagram of linked tables) is very useful.
    Has anyone built anything like this in their application or is there an example out there somewhere of how it was done in the sql workshop.
    Something like this would be very useful in an application that I'm building but I'm not too sure where to start.
    Thanks!
    - Brian

    There are a ton of things in the SQL Workshop that I would love to get the "source code" behind but I am sure Oracle is not about to divulge all these intellectual property anytime soon.
    Login to my apex.oracle.com workspace at vikasa/guest/guest and review the SQL Workshop application. The page that shows the model is 2103 and 2152. It just has a PL/SQL region with an API call to draw the model diagram
    wwv_flow_table_drill.draw_data_model (
        p_owner      =>:OBJECT_OWNER,
        p_table_name =>:OBJECT_NAME,
        p_session    =>:SESSION,
        p_page       =>2103,
        p_request    =>'GETOBJECT',
        p_clear_cache=>'RP',
        p_item_oid   =>'OB_OBJECT_ID'
    );:-(

  • Added Schemas can be viewed in SQL workshop but can't while creating Form

    Hi Friends
    We are using APEX 3.1 and Oracle 10.2.0 at back end.
    I can assign other schemas to a work space successfully.
    The Problem is that
    Added schemas can be viewed in SQL Workshop (SQL commands)
    But can not view the added schemas in the list when want to create a form based on table
    Regards
    Jazib

    Jazib,
    When you select an application the application's Owner attribute determines which tables/views you see in the wizard LOVs. If your application owner (parsing schema) is FOO and you want to create a form on table BAR.T then you have to grant select on BAR.T to FOO.
    Scott

  • Added can be viewed in SQL Workshop but can't when want to create form

    Hi Friends
    We are using APEX 3.1 and Oracle 10.2.0 at back end.
    I can assign other schemas to a work space successfully.
    The Problem is that
    Added schemas can be viewed in SQL Workshop (SQL commands)
    But can not view the added schemas in the list when want to create a form based on table
    Regards
    Jazib

    Closed: duplicate post.

  • Works in SQL Workshop, not in LOV Definition

    I developed a query
    select distinct b.pointname display_value,a.pointnumber return_value
    from e_sub08@scadahst_xajardb a, analogpoint@scadahst_xajardb b
    where a.pointnumber = b.pointnumber
    in SQL Workshop and I get the dataset that I need when I run it there. When I went to plug it into an LOV as a shared component in an application, I get the message "LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
    Why in one, but not the other? Any suggestions as to what I need to change?
    Thanks!

    Hi Kofi,
    Many thanks for that, Kofi - I hadn't even noticed that that option was available!!!!
    In order to set this up, you need to define the LOV through Shared Componets, Lists of Values rather than on the page item itself. (Note that there is a typo in the example code - depno should be DEPTNO :D )
    I've just set up an example using this: [http://apex.oracle.com/pls/otn/f?p=34398:12] - pick any dept apart from the one shown at the top as being deptno = 10 and the second list is empty. Select the department that is deptno = 10 and you get the employees.
    The LOV is defined as:
    IF v('P12_DEPTNO') = '10' THEN
      RETURN
      'SELECT ename d, empno r '||
      'FROM emp '||
      'WHERE DEPTNO = 10 ORDER BY 1';
    ELSE
      RETURN
      'SELECT ename d, empno r '||
      'FROM emp '||
      'WHERE DEPTNO = 1234 ORDER BY 1';
    END IF;Therefore, you could have as many SELECT statements as you like provided all of them return a valid LOV recordset
    Andy

Maybe you are looking for

  • Enq: TX - row lock contention in TOP 5 wait event

    DB version:11.1.0.7.0 I am having enq: TX - row lock contention in top 5 wait event. AWR analyze period - 9-10(pm). During this time only one sql loader is running to insert the data. No other job are running. So there is no chance of other session b

  • Zen Microphoto Recognition Problem..

    I looked around for almost two weeks before finally deciding the Mphoto was the combination that best suited me. Yesterday was the big installation day. I bought a power adapter and charged it up. In the mean time, I installed the software. The last

  • CurrencyValidator as a Component

    I am trying to figure out how to put a currencyValidator in a component and call it when I need it from my main application. I have been able to get it to work in the main application but it is running out of order. Putting it as a component would be

  • Audio distorted in export

    The audio of my exported medai is very distorted. Original audio is from iTunes AAC 256 bits. I'm exporting an lower bits and still distorted. What to do?

  • Com.apple.Safari

    How can I prevent Webpage Previews from being created in com.apple.Safari in my User Library Cache?