Please help!  import issues in sql workshop

I have been importing data in sql workshop to uat environment just fine for months. I am trying to do same in production and it is dying on 4 tables. 10 other tables loaded just fine.
I'm going to:
Home>SQL Workshop>Utilities>Data Import/Export>Import>Import Text or Spreadsheet Data
choosing an existing table and trying to do the import. Fairly immediately getting a 404 error page not found. If I cut the file to only 10 records to test, THAT WORKS FINE. So it's something to do w/ the number of records.
I tried to import thru SQL Developer as inserts and that didn't work because it got rid of everything after the ampersand in data that had ampersands. Also tried import thru SQL Developer using csv and that didn't work either. don't remember why.
I know that importing thru apex has been my best bet. WHY won't it let me import these tables? Why the 404 ... and so quickly, like it didn't even evaluate anything!?
sometimes i get this:
Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
Error ERR-7621 Could not determine workspace for application (:) on application accept.
OK

Hi Scott! :-)
Ok I checked the error log and I see
[Fri Oct 03 20:49:34 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 20:49:34 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:49:34 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:49:34 2008] [error] [client 10.83.8.36] Invalid method in request --------------------------7d82ba13045e
[Fri Oct 03 20:50:14 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 20:50:14 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:50:14 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:50:14 2008] [error] [client 10.83.8.36] Invalid method in request 827740153
[Fri Oct 03 20:53:32 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 20:53:32 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:53:32 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:53:32 2008] [error] [client 10.83.8.36] Invalid method in request 827740153
[Fri Oct 03 20:56:50 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 20:56:50 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:56:50 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:56:50 2008] [error] [client 10.83.8.36] Invalid method in request -7d824153045e
[Fri Oct 03 20:57:21 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 20:57:21 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:57:21 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:57:21 2008] [error] [client 10.83.8.36] Invalid method in request "
[Fri Oct 03 20:58:43 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 20:58:43 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:58:43 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 20:58:43 2008] [error] [client 10.83.8.36] Invalid method in request 073433910
[Fri Oct 03 21:06:11 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 21:06:11 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 21:06:11 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 21:06:11 2008] [error] [client 10.83.8.36] Invalid method in request ---------------7d827b283045e
[Fri Oct 03 21:30:34 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 21:30:34 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 21:30:34 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 21:30:34 2008] [error] [client 10.83.8.36] Invalid method in request 073433910
[Fri Oct 03 22:42:07 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 22:42:07 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 22:42:07 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 22:42:07 2008] [error] [client 10.83.8.36] Invalid method in request ="p_arg_names"
[Fri Oct 03 22:53:37 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 22:53:37 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 22:53:37 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 22:53:37 2008] [error] [client 10.83.8.36] Invalid URI in request m-data; name="p_arg_names"
[Fri Oct 03 22:55:03 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 22:55:03 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 22:55:03 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 22:55:03 2008] [error] [client 10.83.8.36] Invalid method in request -------------7d89773045e
[Fri Oct 03 23:00:58 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:00:58 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:00:58 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:00:58 2008] [error] [client 10.83.8.36] Invalid URI in request form-data; name="p_t02"
[Fri Oct 03 23:01:32 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:01:32 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:01:32 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:01:32 2008] [error] [client 10.83.8.36] Invalid URI in request osition: form-data; name="p_t02"
[Fri Oct 03 23:01:52 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:01:52 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:01:52 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:01:52 2008] [error] [client 10.83.8.36] Invalid method in request ---------------7d838f383045e
[Fri Oct 03 23:02:02 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:02:02 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:02:02 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:02:02 2008] [error] [client 10.83.8.36] Invalid method in request ="p_arg_names"
[Fri Oct 03 23:09:38 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:09:38 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:09:38 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:09:38 2008] [error] [client 10.83.8.36] Invalid URI in request tent-Disposition: form-data; name="p_t02"
[Fri Oct 03 23:11:24 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:11:24 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:11:24 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:11:24 2008] [error] [client 10.83.8.36] Invalid URI in request m-data; name="p_arg_names"
[Fri Oct 03 23:11:51 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:11:51 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:11:51 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:11:51 2008] [error] [client 10.83.8.36] Invalid method in request ---------------7d83e438707b4
[Fri Oct 03 23:12:03 2008] [warn] mod_plsql: Stale Connection due to Oracle error 1691
[Fri Oct 03 23:12:03 2008] [error] mod_plsql: /pls/htmldb/wwv_flow.accept ORA-1691
ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:12:03 2008] [warn] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-01691: unable to extend lob segment FLOWS_FILES.SYS_LOB0000033422C00017$$ by 1024 in tablespace SYSAUX
[Fri Oct 03 23:12:03 2008] [error] [client 10.83.8.36] Invalid method in request ="p_arg_names"i thought maybe needed more space but we don't:
Tablespace Name Bytes Amount Used Amount Free Percentage Used
FLOW_8 104,857,600 18,874,368 85,983,232 18.00

Similar Messages

  • Please help me convert the SQL to HQL

    select
    count(*) as col_0_0_
    from
    edu.hr_people_all hrpeopleal0_
    left outer join
    edu.conditions_journal conditions1_
    on hrpeopleal0_.people_id=conditions1_.people_id
    and conditions1_.personal_number like '%'
    where
    hrpeopleal0_.status=11

    Hibernate version: 3
    HQL as I 've done
    FROM PMSProjectsORO pjt LEFT JOIN PMSChecklistORO pcl
    ON pjt.projectId = pcl.projectId order by
    pjt.projectCode ascHQL is probably incorrect.
    Try this:
    FROM
    PMSProjectsORO pjt
    LEFT JOIN
    PMSChecklistORO pcl
    ORDER BY
    pjt.projectCode asc>
    Original SQL for MSQL5:
    FROM PMSProject LEFT JOIN PMSCheckList ON
    PMSProject.PROJECT_ID = PMSCheckList.PROJECT_ID order
    by PMSProject.PROJECT_CODE desc
    Name and version of the database you are using:
    MYSQL 5
    Please help me convert the sql to hql since what i
    've done is throwing error like unexpected token...
    Please reply ASAPLet me know if that's better.
    %

  • Please Help with Forms and SQL Plus Connection Issues in XE

    I am not able to connect with the Forms Builder or SQL Plus with the following errors:
    When attempting to connect with the supplied website.edu:port/orcl
         ORA-06401: NETCMN: invalid driver designator
    When leaving the connection information blank and using my local login and password
    for my copy of Oracle XE
         ORA-12560: TNS:protocol adapter error
    Based on some reading, I set the TNS_ADMIN user environmental variable, trying each of the tnsnames.ora locations but I'm still receiving the same errors
    Location 1: DevSuiteHome\...\tnsnames.ora
    Location 2: oraclexe\...\tnsnames.ora

    Thanks, Vikas!
    But I did a search for 6iServer.conf and did NOT locate any such file
    Please help
    TIA
    SHANKAR
    Shankar,
    It would have helped if you had indicated what is the full version of 9iAS that you have installed. By default the portnumber that is used is 7778.
    As per the entries, they should have already been made in the config files. But check that the 6iServer.Conf file and it should contain the entries that you are being told to update. If not, then add the entries in the 6iServer.conf file and that is all you need.
    HTH.
    Vikash

  • Please help to build an sql from the given expression to build case condition with Where clause

    if  @rollno is not null then
    Select top  1 studentid  from student where rollno =:@rollno
    else
    if @regno is not null then
    Select top  1 studentid  from student where regno =:@regno
    Please help me to create  the above condition as  a single  sql statement . I will pass two argument in to the sql.
    With Thanks
    Pol
    polachan

    Select top 1 studentid from student
    where (rollno =:@rollno or :@rollno is null)
    and (regno =:@regno or :@regno is null)
    The above expression will work in SQL server
    I'm not sure you're using sql server as syntax like :@regno are not t-sql valid
    so you can try the above and if it doesnt work please try in the relevant forums for more help in case you're using a different RDBMS
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • IPhone 5 brightness permanently reduced (Please help, voltage issue??)

    Hello,
    I really need someone with high expertise to help me. Obviously i appreciate any help given but please dont say point less comment like reboot the phone or turn autobrightness off.
    Here is the issue:
    I have had several iPhones, right from the first to the 5. Lucky me. But i have always had the same issue. The screen brightness is significantly lower than any other iPhone that I compare it to.
    Now i have the iPhone 5, if i compare it to anyone elses the brighness is much lower. Autobrightness is off. When i first got the iPhone the brightness was like everyone elses.
    i only use the official charger. I think there may be a problem with the voltage or the electricity in my home as all my iPhones have had this problem. Im not sure when the change happens but the something is damaging the backlight of my iPhones. No idea what.
    Please can some one with the same issue or knowledge of physics please help me. I dont want to keep having this issue. I also have a Macbook pro and am fairly sure its happned with this also but have no means of comparison as I dont know any one else with one that comes to my apartment.
    Regards
    Fahad

    The iPhone 5 has full Warranty. Make Genius reservation and take to Apple Store. Show the Genius the problem and they will replace your iPhone 5 with a perfect iPhone 5 without problems. If some of iPhone 5 have this problem, it does not matter, Apple makes millions of iPhone 5, some are going to have a problem. When the Genius gives you the new replacement iPhone 5 test it out in the Apple Store before you leave, so you are happy and do not waste anymore of your time.

  • Please help: problem configuring a SQL server datasource in Websphere.

    I am using Rational Developer 6 and its integrated testing server (websphere v6). When configuring a data source for SQL server, I did the following steps in admin console of the test server:
    1. Created a JDBC provider, using WebSphere embedded ConnectJDBC driver for MS SQL Server;
    2. Created a datasource under the previously created JDBC provider, filled in the server name, DB name and port number (1433 for SQL server);
    3. Created a J2C authentication alias that has the login info of SQL server;
    4. Assigned the created J2C alias to both component and container managed authentication alias;
    However, when I click "Test Connection", it always gets back to me with an error "java.lang.Exception: java.sql.SQLException: [IBM][SQLServer JDBC Driver]Error establishing socket. Connection refused: connectDSRA0010E: SQL State = 08001, Error Code = 0.".
    My ultimate goal is to configure a SQL server datasource so that I can configure Kodo to use this datasource.
    Can some one please help? Thanks in advance.

    Try this:
    http://www-1.ibm.com/support/docview.wss?uid=swg21210871
    I am yet to test this. I am going to download latest SP for SQL Server 2000 and install it. I hope it will do the magic.

  • Please help..Issue on getting parameter from a backend fm

    Dear Expert,
    I have a requirement which is to edit the ess~cod for the employee communication. I have copy out the function group ZHRXSS_COD_INTERFACE. I created my own function module ZCOD_VALIDATE and attached to the function group. My funtion module are just returning an export parameter and a table without getting any import parameter.
    I have create a ZCodModel (pointing to the ECC function group) and the model class is ZCod_Validate_Output. I have done all the reimporting of the model and context binding. My question is why i still not getting any value from the function module. I tested the fm in ecc and it works well.
    I have added the following code in do init.
    ZCod_Validate_Input Input = new ZCod_Validate_Input();
    wdContext.nodeZCod_Validate_Input().bind(Input);
    try {
    wdContext.currentZCod_Validate_InputElement().modelObject().execute();
    wdContext.nodeCod_Validate_Output().invalidate();
    } catch (Exception ex) {
    fpm.getMessageManager().raiseException(wdThis.wdGetAPI ().getComponent(), ex);
    Anyone can tell me why i am not getting the parameter? Please help me.
    Thanks.
    Regards,
    Bryan

    Hi Siva,
    Thanks for your reply.
    I got this error when i execute it? Anyway my function module does also return a table but i have yet to define a context to store it. I am just trying to get the value of the export parameter. If it success, then i can proceed to bind the table. However now, it seem getting an export parameter also giving me problems.
    java.lang.ArrayIndexOutOfBoundsException: -1
        at com.sap.mw.jco.JCO$Record.getString(JCO.java:12798)
        at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:669)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:427)
        at com.sap.xss.hr.cod.model1.Zhrxss_Cod_Validate_Output.getNameofposition(Zhrxss_Cod_Validate_Output.java:164)
        at com.sap.xss.hr.cod.wdp.IPublicFcCodBusinessLogicComp$IZhrxss_Cod_Validate_OutputElement.wdGetObject(IPublicFcCodBusinessLogicComp.java:6601)
    Thanks.
    Regards,
    Bryan

  • Please help me with this SQL query

    I am practicing SQL queries and have come across one involving fetching data from 3 different tables.
    The three tables are as below
    <pre>
    Country
    location_id          country
    loc1          Spain
    loc2          England
    loc3          Spain
    loc4          USA
    loc5          Italy
    loc6          USA
    loc7          USA
    </pre>
    <pre>
    User
    user_id location_id
    u1 loc1
    u2 loc1
    u3 loc2
    u4 loc2
    u5 loc1
    u6 loc3
    </pre>
    <pre>
    Post
    post_id user_id
    p1 u1
    p2 u1
    p3 u2
    p4 u3
    p5 u1
    p6 u2
    </pre>
    I am trying to write an SQL query - for each country of users, display the average number of posts
    I understand the logic behind this that we first need to group together all the locations and then the users belonging to one country and then find the average of their posts.
    But, i'm having a difficulty in putting this in SQL form. Could someone please help me with this query.
    Thanks.

    select
    country.country,
    count(*) Totalpostspercountry,
    count(distinct post.user_id) Totaldistincuserspercountry,
    count(*)/count(distinct post.user_id) Avgpostsperuserbycountry
    from
    country, muser, post
    where country.location_id = muser.location_id
    and muser.user_id = post.user_id
    group by country.country
    The output is like this for your sample data - hope this is what you were looking for :)
    COUNTRY,TOTALPOSTSPERCOUNTRY,TOTALDISTINCUSERSPERCOUNTRY,AVGPOSTSPERUSERBYCOUNTRY
    England,1,1,1,
    Spain,5,2,2.5,

  • Please Help - Same issue for years - Mail rule switches itself!

    This issue has plagued me with Apple Mail for years and I would like to finally resolve this to keep my sanity. Please help!
    We have used the MobileMe family account (5 pack) for awhile and both my wife and I have our own unique email address that is set and we also have one combined account that we use as well. I have some rules in place to help keep the mail organized. Often we will get 1 e-mail for both of us (i.e. a message about a group we are both in or a sports team for our children) - it is sent to our joint account and then the Mail rule will handle putting them in both our boxes.
    There is the one rule that keeps changing itself! It's maddening. Here is what I want to occur:
    1. I get an e-mail to our joint MobileMe account.
    2. The rule will move that specific message to my folder and then place a copy of that message in my wife's folder.
    That's it. That's all that I want it to do.
    Here is what I put in the mail rule description to make that happen:
    IF "any" conditions met:
    "Any recipient" is equal to "joint account e-mail address"
    Perform following actions:
    "Move message" to "my mailbox"
    "copy message" to "her mailbox"
    "Stop evaluating rules"
    That's it. Here is where the problem ensues. This rule will actually work correctly for 1 or 2 times. Then what happens is somehow this rule actually changes itself and when I open up the rule description it will actually show:
    "Move message" to "my mailbox"
    "Copy message" to "my mailbox"
    Ugh. So I end up getting two copies of the same thing and have to physically move it over. It seems so simple and I can't understand why it keeps switching itself.
    I've had the issue ever since we had our family account and back to the Tiger operating system. I would love to get this fixed for good!

    I may well have missed something, but it seems to me that the command to Copy to her mailbox should come before the command to Move to your mailbox. That way the source remains available until the final Move step. I cannot say why the Rule construction would change by itself, but I can see the possibility of confusion if the Move comes before the Copy.
    Ernie

  • Please help - boot issues, os issues HELP

    so i came home after three months and started up my mac. i was having internet issues so i restarted the mac. ever since the mac has been tremendously slow, taking sometime 15 minutes to boot. after that every application runs absurdly slow. i searched the forums and found the suggestion to boot into open firmware and reser pram and nvram.
    so i did that. after that the os x boot screem came up and the status bar seemed to be moving faster, but it gets all the way to the end of the bar and then just hangs.
    i know have the tiger install dvd in the drive and am trying to reboot, because i saw the suggestion to run a hardware test and a disk repair but i cannot boot to the dvd either.
    please HELP! i love my mac and am going crazy without it, having to use the horrible dell laptop my work gives me right now.

    If your attempt to boot from Tiger DVD fails, it sounds like the directory on the disk drive is very damaged and corrupt, which can prevent booting.
    Do you have a FireWire drive handy?
    A backup?
    You will need another drive to work from. And either a copy of TechTool Pro 4.5 or Disk Warrior probably.
    You could try booting to Single User Mode (command s) and run fsck - though I suspect it will say it was unable to repair, nothing to lose - maybe.
    How hard is to to disconnect the internal hard drive? or to replace it? or move it to a external FW/SATA interface case.

  • Please help regarding a PL/SQL Code for padding of digits

    I have a table named as EWT_POL_AGT_REL. There is column named PDT_AGENT_NBR present in this table. The data type of this column is
    VARCHAR2(8 byte). There are some records in with pdt_agent_nbr having 8 spaces and some starting with zero such as “08400”. So I want
    to do following things 1.)left-append a '0' in front of the existing 5 digit PDT_AGENT_NBR and make it to 8 digits 2) if the existing PDT_AGENT_NBR is already 8 digits, do nothing 3.) if it contains leading spaces then replace them by zero.
    Sceanrios
    if PDT_AGENT_NBR is " 12345" then i should get "00012345"
    if PDT_AGENT_NBR is "1234" then i should get "00001234"
    This table has nearly 180 million records hence an update query will not work. Instead a PL/SQL procedure needs to be developed.
    Please help me on this. Please

    This table has nearly 180 million records hence an update query will not work. Because..................?
    Instead a PL/SQL procedure needs to be developed.So you want it to be slower?

  • Please help update issue

    I updated my iphone 3g and now itunes is saying that it's restoring iphone software it's now been doing this for about 5 hours and i'm not even half way through is this normal? someone please help thanks

    I had mega problems too. Try following the steps in my posting as below after creating a new user account on your computer with ADMIN priviledges also. See my posting on 20/06/2009 22:33 titled "Upgrade Error number 4 and Restore Error 1603 when going to OS 3.0 - Solved"
    And turn off any antivirus and firewall software too, before doing so. In ITunes, highlight your iphone icon and then click the Restore Button on the ITunes Summary tab which seems to force the iphone into an update. Dont try using the Check for update button. Good Luck...........

  • TS1717 Please help download issue windows 7

    please help! I installed the new version of itunes and now when i try to run it, i get a message that says, "this version is corrupted or not installed properly." i'm afraid to uninstall and lose all my music.

    Let's try a repair install of iTunes first.
    Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", click "Change" and then click "Repair".
    Can you launch your iTunes now?

  • PLEASE HELP IMPORTANT IPOD ISSUES

    k so i got a video ipod today
    and i was uploading a tv show
    of desperate housewives and i payed
    for it nad it was uploading but in the
    middle of when it was uploading my computer
    froze so i had to shut down itunes and now
    how do i finish downloading the episode
    cause i already payed for it!?

    Are you using Windows, Mac or chrarging it via a Wall charger?

  • Continuation-Please help with a complex sql query

    Hi all,
    Thanks a lot for your suggestions and inputs in the last thread of this post.
    With the help of your suggested approach,i went ahead and was able to get some more data in the format as needed..I worked on gradually adding one table after another exactly as the data is required stepwise.But,still I am facing issues with displaying them.
    there are many issues I am not able to do and would appreciate if you please have a look at my latest modified SELECT given below and help me writing it to get the display as needed.
    Below,is the attempted query i tried out using your inputs.But,am stuck and need your help in writing it.
    **Here,there is 1 ->MANY lines for the t_objective_id--->This has many learning_record_ids which i want to group by the unique objective_id.
    Also,prior to that,there is a tplan_id---->which has MANY t_objective_id's
    SELECT DECODE (LAG (firstname, 1, 0) OVER (ORDER BY firstname),
                   firstname, ' ',
                   firstname
                  ) firstname,
           DECODE (LAG (emplid, 1, 0) OVER (ORDER BY emplid),
                   emplid, ' ',
                   emplid
                  ) emplid,
           DECODE (LAG (tplan_name, 1, 0) OVER (ORDER BY tplan_name),
                   tplan_name, ' ',
                   tplan_name
                  ) tplan_name,
                  tplan_id,
                  DECODE (LAG (activities, 1, 0) OVER (ORDER BY activities),
                   activities, ' ',
                   activities
                  ) activities,
                  activities,
                  --activities,
           DECODE (LAG (t_objective_id, 1, 0) OVER (ORDER BY t_objective_id),
                   t_objective_id, ' ',
                   t_objective_id
                  ) t_objective_id,           
                   completed_activities,required_credits,
          DECODE (LAG (learning_record_id, 1, 0) OVER (ORDER BY learning_record_id),
                   learning_record_id, ' ',
                   learning_record_id
                  ) learning_record_id,           
                   catalog_item_name,catalog_item_type           
      FROM (SELECT test_cp.firstname, test_op.emplid, tp.tplan_name,tp.tplan_id,FN_TP_GET_CMPLTD_ACT_CNT(tp.tplan_id,test_lp.lp_person_id,'1862') activities,
                   test_tpo.t_objective_id,
                   (  fn_tp_obj_comp_req_act_cdt (test_lp.lp_person_id,
                                                  tp.tplan_id,
                                                  test_tpo.t_objective_id,
                                                  tp.is_credit_based
                    + fn_tp_obj_comp_opt_act_cdt (test_lp.lp_person_id,
                                                  tp.tplan_id,
                                                  test_tpo.t_objective_id,
                                                  tp.is_credit_based
                   ) completed_activities,test_tpo.required_credits,lr.learning_record_id,lr.catalog_item_name,lr.catalog_item_type
              FROM test_learning_plan test_lp,
                   test_training_plan tp,
                   test_person test_cp,
                   test_org_person test_op,test_tp_learning_activity test_tplplr,
                   test_tp_objective test_tpo,test_learning_record lr,test_train_obj_activity tpobjact
             WHERE test_lp.lp_person_id = '1862188559'
               AND test_cp.person_id = test_lp.lp_person_id
               AND tp.tplan_id = 'tplan200811200632352287621599'
               AND test_tpo.t_objective_id = tpobjact.t_objective_id
               AND test_lp.LP_CATALOG_HIST_ID = tp.tplan_id
               AND test_tplplr.tp_lp_lr_id =test_lp.learning_plan_id
               AND test_tplplr.activity_lp_lr_id = lr.learning_record_id
               AND lr.LR_CATALOG_HISTORY_ID = tpobjact.activity_id
               AND test_op.o_person_id = test_cp.person_id
               AND test_tpo.tplan_id = tp.tplan_id)
    If we see the outer SELECT ---then one of the main issues is for EACH t_objective_id----->There are n learning_record_ids.
    But,this select only shows 1 learning_record_id for each objective_id which is wrong.
    Similarly,the data displayed isnot proper.
    Below is the way I am getting the data now from the above SELECT.
    Note:- FIRSTNAME is not correctly displayed.
    FIRSTNAME     EMPLID     TPLAN_NAME     TPLAN_ID     ACTIVITIES     ACTIVITIES_1  
                      001                TP1          tplan1          5          5
    TESTNAME                                              tplan1           5          
    Continuation of the other columns of the same rows--**couldnt paste it properly so.
    T_OBJECTIVE_ID     COMPLETED_ACTIVITIES     REQUIRED_CREDITS     LEARNING_RECORD_ID        CATALOG_ITEM_NAME     CATALOG_ITEM_TYPE
              obj1               1                         5                         lr1                            C1                          Course
                    obj2               4                        4          

    Something like this might solve your problem ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1815       1400         30
          7788 SCOTT      ANALYST         7566 19-APR-87     598.95                    20
          7839 KING       PRESIDENT            17-NOV-81       7260                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87     159.72                    20
          7900 JAMES      CLERK           7698 03-DEC-81     1379.4                    30
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20
          7934 MILLER     CLERK           7782 23-JAN-82     1887.6                    10
          7566 Smith      Manager         7839 23-JAN-82       1848          0         10
          7698 Glen       Manager         7839 23-JAN-82       1848          0         10
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7599 BILLY      ANALYST         7566 10-JUN-09       4500                    30
    12 rows selected.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>
    satyaki>
    satyaki>select decode(lag(job,1,null) over(order by job),'CLERK','CK',
      2                                                   'SALESMAN', 'SM',
      3                                                   'ANALYST','AL',
      4                                                   'BO') res
      5  from emp;
    RE
    BO
    AL
    AL
    AL
    CK
    CK
    CK
    BO
    BO
    BO
    SM
    RE
    SM
    12 rows selected.
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>select MAX(decode(lag(job,1,null) over(order by job),'CLERK','CK',
      2                                                   'SALESMAN', 'SM',
      3                                                   'ANALYST','AL',
      4                                                   'BO')) res
      5  from emp;
    select MAX(decode(lag(job,1,null) over(order by job),'CLERK','CK',
    ERROR at line 1:
    ORA-30483: window  functions are not allowed here
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>select MAX(res)
      2  from (
      3          select decode(lag(job,1,null) over(order by job),'CLERK','CK',
      4                                                           'SALESMAN', 'SM',
      5                                                           'ANALYST','AL',
      6                                                           'BO') res
      7          from emp
      8     );
    MA
    SM
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>Regards.
    Satyaki De.

Maybe you are looking for

  • PSE9 Quick edit and guided edit have disappeared

    Hi everyone, hope you can help me. I downloaded an action, followed the installation advice and installed the action BUT then when I clicked the guided and quick edit tabs (which were kind of ghost letters), there's just blank panels. The process for

  • Can't convert int to java.lang.Object

    When I deploy my customer Bean, the following error occures, I think the main problem is Can't convert int to java.lang.Object, does anyone facing the same problem with me? <pre>C:\j2sdkee1.3\repository\home\gnrtrTMP\CustomerApp\CustomerBean_RemoteHo

  • New iPod Touch 2g memory...

    Hello... I have been waiting for the new ipod touch since the ipod touch 1g came out... the reason I have not bought the 1g is because of its small capacity... But again.. kind of disappointed with 8gig even though price has cut and I was expecting t

  • How well does mac read and write with FAT32

    Hi there, I have heard that an external hard drive formatted in FAT32 from a windows machine will work with a mac. Is it a seemless read and write while using an application. i have both a pc and a mac and want both to use the same harddrive. Thanks,

  • Palm treo650 restarting problem

    When I click on main screen, options, phone info, the phone number and username is not shown anymore. I wonder what happened and how it can be fixed. And so when I want to turn on the phone, it restarts. Please advise! Post relates to: Treo 650 (Telu