V_$Session column program too small.

I'm tring to find the program executed in a given session using the PROGRAM column in V_$SESSION (Oracle 8.1.7) however I can't because the column length seems 48 chacacters wide and that's not enough with a long path like "C:\somewhere......".
Then the column value is truncated.
Is there any workaround ?
Tks
Tullio

You can see from v$fixed_view_definition that the gv$session and v$session views directly reflect the undelying value in x$ksuse. Hence I suspect there is no way to get a longer text for the os program.

Similar Messages

  • Soa database column (WORK_ITEM) too small for nested activities ?

    Hello all,
    we've got a big problem on bpm that it seems to imply that activity names should not be too long or activities should not be nested.
    We have a BPM Process (named "Process") with parallel cycle that has an activity that calls a reusable workflow "RwSubprocess" with other activities.
    The first activity of reusable workflow RwSubprocess is a call activity to a reusable workflow that executes a send task and a receive task (CPT:chRisp) to a ws exposed by a bpel.
    The flows executes all the calls regularly, but when it arrives at the call CPT:chRisp it throws the following error.
    It seems that the bpm engine creates a custom_id too big for the column in the db...
    Is there a solution for this? We choosed to nest activities since the entire workflow is quite big and we used nesting to try to maintain it readable.
    <Feb 11, 2015 3:07:07 PM CET> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliveryBean.handleCallback(com.collaxa.cube.engine.dispatch.message.instance.CallbackDeliveryMessage)],Xid=BEA1-561442D729229E472B1E(1957828093),Status=Rolled back. [Reason=javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLDataException: A truncation error was encountered trying to shrink VARCHAR 'default/Zzz_Wfxxxxxxxxxxxxxxxxxxxx!1.0*soa_d8cba580-ebc4-4cd&' to length 256.
    Error Code: 20000
    Call: INSERT INTO WORK_ITEM (NODE_ID, CIKEY, SCOPE_ID, COUNT_ID, CLUSTER_NODE_ID, CLUSTER_NODE_KEY, COMMENTS, CREATION_DATE, CREATOR, CUSTOM_ID, DELAY, EXECUTION_TYPE, EXP_DATE, EXP_FLAG, EXT_INT1, EXT_STRING1, EXT_STRING2, FIRST_DELAY, IDEMPOTENT_FLAG, LABEL, MODIFIER, MODIFY_DATE, CI_PARTITION_DATE, PRIORITY, REFERENCE_ID, STATE, TRANSITION) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
      bind => [Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT12198499959993, 340240, Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT11766550672060_try.26, 3, null, -1, null, 2015-02-11 15:07:06.985, null, default/Zzz_Wfxxxxxxxxxxxxxxxxxxxx!1.0*soa_d8cba580-ebc4-4cd7-a8e8-8586e3ad15d7/Process/340240-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT12198499959993-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT11766550672060_try.26-3, 0, 0, null, 0, 0, null, null, 0, 1, CPT:chRisp, null, 2015-02-11 15:07:07.2, 2015-02-11 15:07:05.662, 3, null, 3, 0]
    Query: InsertObjectQuery(340240-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT12198499959993-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT11766550672060_try.26-3)],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,useSecure=false,XAServerResourceInfo[SOADataSource_DefaultDomain]=(ServerResourceInfo[SOADataSource_DefaultDomain]=(state=rolledback,assigned=DefaultServer),xar=SOADataSource,re-Registered = false),SCInfo[DefaultDomain+DefaultServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliveryBean.handleCallback(com.collaxa.cube.engine.dispatch.message.instance.CallbackDeliveryMessage)]}),local properties=({weblogic.jdbc.jta.SOADataSource=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=DefaultServer+172.19.33.67:7101+DefaultDomain+t3+ CoordinatorNonSecureURL=DefaultServer+172.19.33.67:7101+DefaultDomain+t3+ coordinatorSecureURL=null, XAResources={eis/jms/aiaErrorTopicCF, OraSDPMDataSource_DefaultDomain, eis/wls/EDNxaTopic, WLStore_DefaultDomain_SOAJMSFileStore, eis/AQ/aqSample, eis/wls/EDNxaDurableTopic, eis/fioranomq/Topic, eis/jbossmq/Queue, eis/File/XAFileAdapter, EDNDataSource_DefaultDomain, eis/aqjms/Topic, eis/wls/EDNLocalTxDurableTopic, eis/aqjms/EDNxaTopic, tangosol.coherenceTx, WLStore_DefaultDomain_WseeFileStore, eis/sunmq/Queue, SOADataSource_DefaultDomain, eis/aqjms/Queue, wlsbjmsrpDataSource_DefaultDomain, eis/tibjms/Queue, eis/XAFileAdapter, tangosol.coherenceTxCCI, eis/aq/aiaB2BInfraAQCF, WLStore_DefaultDomain_BPMJMSFileStore, WLStore_DefaultDomain_FileStore, eis/tibjms/Topic, eis/tibjmsDirect/Queue, eis/jms/aiaB2BQueueCF, eis/XAFileAdapter3, eis/wls/Queue, eis/oracle/in-memory, eis/File/XAFileAdapter2, eis/webspheremq/Queue, eis/tibjmsDirect/Topic, eis/aqjms/EDNLocalTxDurableTopic, eis/Apps/Apps, eis/wls/Topic, eis/aqjms/EDNLocalTxTopic, WSATGatewayRM_DefaultServer_DefaultDomain, eis/activemq/Queue, eis/pramati/Queue, WLStore_DefaultDomain__WLS_DefaultServer, WLStore_DefaultDomain_UMSJMSFileStore, eis/aqjms/EDNxaDurableTopic, eis/wls/EDNLocalTxTopic},NonXAResources={})],CoordinatorURL=DefaultServer+172.19.33.67:7101+DefaultDomain+t3+): weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=[email protected]99f086
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLDataException: A truncation error was encountered trying to shrink VARCHAR 'default/Zzz_Wfxxxxxxxxxxxxxxxxxxxx!1.0*soa_d8cba580-ebc4-4cd&' to length 256.
    Error Code: 20000
    Call: INSERT INTO WORK_ITEM (NODE_ID, CIKEY, SCOPE_ID, COUNT_ID, CLUSTER_NODE_ID, CLUSTER_NODE_KEY, COMMENTS, CREATION_DATE, CREATOR, CUSTOM_ID, DELAY, EXECUTION_TYPE, EXP_DATE, EXP_FLAG, EXT_INT1, EXT_STRING1, EXT_STRING2, FIRST_DELAY, IDEMPOTENT_FLAG, LABEL, MODIFIER, MODIFY_DATE, CI_PARTITION_DATE, PRIORITY, REFERENCE_ID, STATE, TRANSITION) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
      bind => [Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT12198499959993, 340240, Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT11766550672060_try.26, 3, null, -1, null, 2015-02-11 15:07:06.985, null, default/Zzz_Wfxxxxxxxxxxxxxxxxxxxx!1.0*soa_d8cba580-ebc4-4cd7-a8e8-8586e3ad15d7/Process/340240-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT12198499959993-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT11766550672060_try.26-3, 0, 0, null, 0, 0, null, null, 0, 1, CPT:chRisp, null, 2015-02-11 15:07:07.2, 2015-02-11 15:07:05.662, 3, null, 3, 0]
    Query: InsertObjectQuery(340240-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT12198499959993-Process_ACT11765174131137_RwSubprocess1_ACT11766550672060_ACT11766550672060_try.26-3)
      at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1985)
      at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:369)
      at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:260)
      at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocalObject.java:335)
      at weblogic.ejb.container.internal.BaseLocalObject.__WL_postInvokeTxRetry(BaseLocalObject.java:204)
      at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:46)
      at oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliveryBean_of8dk6_ICubeDeliveryLocalBeanImpl.handleCallback(Unknown Source)
      at com.collaxa.cube.engine.dispatch.message.instance.CallbackDeliveryMessageHandler.handle(CallbackDeliveryMessageHandler.java:65)
      at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:153)
      at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:132)
      at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:90)
      at com.collaxa.cube.engine.dispatch.WMExecutor$W.run(WMExecutor.java:239)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException

    We have faced similar challenges and its know issue with BPM (Value too Large for Column "SCHEMA_SOAINFRA"."TABLE_NAME"."COLUMN_NAME" (actual:XXX,maximum:YYY) (Doc ID 1499966.1)).
    Solution suggested from Oracle was  to alter the columns to increase the length. We ended up like this.
    ALTER TABLE EPRSBPM_SOAINFRA.WORK_ITEM modify CUSTOM_ID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.WORK_ITEM modify NODE_ID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.WORK_ITEM modify SCOPE_ID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.DLV_SUBSCRIPTION modify SUBSCRIBER_ID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.BPM_AUDIT_QUERY modify FAULT_TYPE varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.WFTASK modify PARENTCOMPONENTINSTREFID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.WFTASKHISTORY modify PARENTCOMPONENTINSTREFID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.DLV_MESSAGE modify RES_SUBSCRIBER varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.CUBE_INSTANCE modify PARENT_REF_ID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.BPM_AUDIT_QUERY modify SCOPE_ID varchar2(1024);
    ALTER TABLE EPRSBPM_SOAINFRA.BPM_CUBE_TASKPERFORMANCE modify SCOPEID varchar2(1024);

  • ORA-22835: buffer too small when trying to save pdf file in LONG RAW column

    Hi,
    I get "ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (real : 125695, maximum : 2000)" when i trying to save a 120k pdf file in an Oracle Long Raw column using dotnet 4.0 and Entity FrameWork.
    Dim db As New OracleEntities
    Try
    Dim myEntity = (From e In db.TEXTE _
    Where e.TEXT_ID = txtTextId.Text _
    Select e).Single
    With myEntity
    If txtTextypeId.Text <> "" Then
    .TEXTYPE_ID = txtTextypeId.Text
    Else
    .TEXTYPE_ID = Nothing
    End If
    .TEXT_NUM = txtTextNum.Text
    .TEXT_NAME = txtTextName.Text
    .TEXT_DATE = dtTextDate.SelectedDate
    If DocAdded Then
    .TEXT_DOC = Document
    ElseIf DocDeleted Then
    .TEXT_DOC = Nothing
    End If
    End With
    db.SaveChanges()
    Document is an array of Byte and TEXT_DOC also (mapped to a long row column).
    is it possible to increase the size of the buffer ? how may i do it ?
    Thx in advance.
    Regards.

    Using a custom UPDATE or INSERT stored procedure for LONG RAW column with
    exceed-limit data may still get the following error.
    "ORA-01460: unimplemented or unreasonable conversion requested".
    One option is to use BLOB instead of LONG RAW in your table and regenerate your
    data model from the table. Then using the default UPDATE or INSERT statement
    (created by EF) should work.
    The following will modify your LONG RAW column to BLOB column.
    Disclaimers:
    1. It's irreversible--you cannot modify BLOB back to LONG RAW.
    2. I have not tried that when there are huge data in LONG RAW column.
    So be careful.
    alter table <your_table_name> modify <your_long_raw_type_column> blob;

  • Bug: Report Column based on LOV character string buffer too small error

    When using a column type of "Display as Text (based on LOV, does not save state)" with a result set that is rather large causes a character or string buffer too small oracle error.
    See the below page for an example.
    The example page below has a single report off a table called "HUGE_TABLE" which has two columns: display and code
    Code contains a number between 0 and 100000.
    Display contains the number in code appended to a block of text.
    When I display the report with no Display As Text (based on LOV does not save state) it displays fine.
    If I make the "Code" column display as text based on LOV and make the LOV
    "SELECT display, code FROM huge_table"
    I get the error you see on the page.
    http://apex.oracle.com/pls/otn/f?p=32149:1
    Thanks.

    Thanks for your help Scott.
    So from what I've gathered from my own tests and the discussions you linked me to the LOVs based on SQL queries are being converted into "static LOV" strings before being used.
    As such they are limited to the PL/SQL VARCHAR2 max size of 32767
    Which means given the static reduction of the string 'STATIC:' that we have 32760 characters left.
    Which is where your SUM( LENGTH( display ) + LENGTH( return ) + 2 ) comes in.
    In short, if:
    sum( length( display ) + length( return ) + 2 ) + 7 > 32767
    would evaluate to true then you have a problem. :)
    I'll use this to track down my problems and switch them over to inline queries.
    Thanks.
    Cheers,
    Joe

  • What to do if my master page is too small for custom master page column, I need to change the papers

    What to do if my master page is too small for custom master page column, I need to change the papersize from A4 to US letter size *

    My 2nd gen works fine with WPA2 and AES encryption.
    You may need to go back and start over.  Reset the router back to factory defaults, log on as the admin, set up security, DHCP, and make sure the IP address pool has enough IP addresses to lease to ALL of the computers/devices that will connect to that the router.

  • Font Size for Favorites column too small in Leopard

    I just installed Leopard and find that the font used in the Favorites column is smaller than that used by Tiger and is too small for me to read. I see that the View Options allow font size to be changed for the file and folder names in finder windows, but I can't find anywhere to set the font of the Favorites column. Can anyone help me with a hack?

    Guess not. Thanks anyway.

  • I'm new to Mac's and I find the display's just slightly too small. I'd like to increase the size for all my program. Is there a single setting that I can change?

    I'm new to Mac's and I find the display's just slightly too small. I'd like to increase the size of my display for all my programs. Is there a single setting that I can change as a default setting?

    You can drop the resolution a little, but it makes everything blurry.
    OS X isn't as friendly like Windows is to give some UI adjustment, one of many major complaints about the platform that has gone unheeded for years now.
    As a lifelong Mac user who's eyes are going due to age, I'm really liking Windows 7 more and more every day.
    If you use Firefox, NoSquint and Theme Font & Size Changer add-ons, with a nice persona that makes better contrast, tweak the FF toolbars, you can at least make your web surfing tolerable on Mac's.
    Also you can set a Control key in System Preferences > Universal Access plus a scroll wheel mouse, if you need to zoom in/out certain areas of OS X, however for a pernament UI scale solution there is none that's practical, unless you have a large room, a projector and a smooth wall.
    A larger monitor won't work up close neither, however dropping the resolution and sitting back a bit might sharpen the images a bit.
    The UI really needs to be adjustable and it's not.

  • Qosmio X500 - Texts too small in program

    Hi, I downloaded McAfee internet security on my Qosmio X500 11-G.
    The program is working without any problems however the items are too small to read in the program.
    How can I make them larger? I made the screen view to 150 % but still no way.

    Hello
    Do you have the problem since McAfee installation or earlier?
    Probably removing McAfee would help and install another AntiVirus like AntiVir but its strange that McAfee changes the text size
    Is it a known issue of McAfee? Did you contact the support already?

  • I bought Adobe CS6 Design Standard, however on my new laptop (3840x2160 pixel screen) the program interface is way too small and i cannot size it larger. Anyone an idea?

    I bought Adobe CS6 Design Standard, however on my new laptop (3840x2160 pixel screen) the program interface is way too small and i cannot size it larger. Anyone an idea?

    Hi,
    Is there any particular application's interface that is coming up small or is it happening with all the products?
    Cheers,
    Kartikay Sharma

  • The default print size on Pages is too small - how can I program it to be larger?

    The default type size in Pages is too small - can I permanently size is larger? Thank you.

    Hi Ellis,
    When you say the default font size, is this set by the template you use for a new document? If so, create your own. Open a blank template, set the font size, and Save as Template... with a new name.
    In Pages > Preferences > General > For new Documents > Use Template.
    Choose your template. When you open Pages, it will open that template.
    File > New will also open that template.
    The font of a document from someone else has been set by the author of that document. You will have to change it.
    Also, have a look at View > Zoom. Perhaps the font is not small, but your view of the page is small.
    Regards,
    Ian

  • Thumbnails in "OPEN" dialog box too small to see!

    The thumbnails are  too small in the open dialog box so that I can't see the file I want to open.  Yes, you can make them bigger in finder itself...but I am always opening pictures and I just can't see them!
    Almost as frustrating as the column issue.   The name column is very very wide when I try to open a file.. so I can't sort by the other columns without dragging over the bar at the bottom of the screen.  THis is so so frustrating.  I resize but it doesn't stick to the next session.
    Apple invented the finder.  Why is it so inferior to windows explorer?

    The only solution to enlarging the icons in an application open dialog window is to use the Accessibility panel in System Preferences. Under Zoom, enable Use keyboard shortcuts to zoom.
    The first time you have an application open dialog, you press the keys: option + command + =  as many times as you want to zoom in. This will enlarge the open dialog window and its contents. When done, press option + command + 8 to restore normal window size. Subsequently, you can alternatively press option + command + 8 to zoom to the previous setting, or return to normal zoom.
    This is as good as it is going to get. The applications (not just Apple’s) only use a subset of Finder’s settings in the open dialogs, and these do not include icon enlargement settings, which as you realize, are part of the actual Finder’s settings. The application development frameworks, and not Finder, are remiss in not providing icon size adjustments in open dialog windows.
    You can provide feedback to Apple regarding OS X.

  • Error: ORA-06502: PL/SQL: numeric or value error: host bind array too small

    Hello,
    I am getting this error when i am trying to execute a PL/SQL script using an Oracle API
    We are using Oracle 10g release 2 database. I am getting this error only on some instances. This script is running fine in Development instances.
    Script:
    SET VERIFY OFF;
    SET serveroutput on size 100000;
    SET linesize 300;
    EXEC FND_STATS.GATHER_COLUMN_STATS ('AR', 'HZ_LOCATIONS', 'COUNTRY');
    SELECT
    hl.location_id,hl.state, hl.country,
    hcasa.org_id
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%';
    --PROMPT Dropping Table pmr13286_temptable
    DROP TABLE pmr13286_temptable;
    CREATE TABLE pmr13286_temptable AS (SELECT
    hp.attribute_category , hl.address_lines_phonetic,
    hps.party_site_number,hca.cust_account_id,
    hcsua.site_use_code, hcsua.primary_flag, hcsua.status,
    hl.address1, hl.address2, hl.address3, hl.address4,
    hl.city, hl.state, hl.postal_code, hl.country,
    hl.county, hl.province, hcasa.org_id,
    hl.creation_date
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%');
    DECLARE
    l_location_rec hz_location_v2pub.location_rec_type;
    l_object_version_number hz_locations.object_version_number%TYPE;
    p_status_code NUMBER;
    l_api_status VARCHAR2 (2000);
    l_msg_count NUMBER (15);
    l_msg_data VARCHAR2 (2000);
    v_total_count NUMBER (15);
    v_prvi_count NUMBER (15);
    v_countr_count NUMBER (15);
    v_null_count NUMBER (15);
    v_rem_recs          NUMBER (15);
    v_status_code VARCHAR2 (2000);
    l_sql_errmsg VARCHAR2 (500);
    CURSOR c_cust_addr
    IS
    SELECT
    hl.*
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%';
    BEGIN
    v_total_count := 0;
    v_prvi_count := 0;
    v_countr_count := 0;
    v_null_count := 0;
    dbms_output.put_line('Total Count'||v_total_count );
    dbms_output.put_line('PR/VI Conversion Count'||v_prvi_count );
    dbms_output.put_line('PR/VI to US Conversion Count'||v_countr_count );
    dbms_output.put_line('Non US/CA State Null Count'||v_null_count );
    FOR i IN c_cust_addr
    LOOP
    l_location_rec := NULL;
    v_total_count := v_total_count + 1;
    l_location_rec.location_id := i.location_id;
    l_location_rec.state := i.state;
    l_location_rec.country := i.country;
    dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    BEGIN
    SELECT hl.object_version_number
    INTO l_object_version_number
    FROM hz_locations hl
    WHERE hl.location_id = l_location_rec.location_id;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    raise_application_error (
    -20059,
    'object_version_number not found for location = '
    || TO_CHAR (l_location_rec.location_id)
    END;
    Update 1 - Update Addresses of 3 records that have wrong country names
    BEGIN
    IF (l_location_rec.location_id IN (1436720,119456,604649)) THEN
    dbms_output.put_line(' 3 records Location_id '||l_location_rec.location_id);
    IF ( l_location_rec.location_id = 1436720) THEN
    l_location_rec.state := 'OH';
    l_location_rec.country := 'US';
    ELSIF ( l_location_rec.location_id = 119456) THEN
    l_location_rec.country := 'US';
    ELSIF ( l_location_rec.location_id = 604649) THEN
         l_location_rec.country := 'PK';
    END IF;
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
         IF l_api_status <> fnd_api.g_ret_sts_success
    THEN
    dbms_output.put_line(' Error In API with status of '||l_api_status);
    IF l_msg_count > 1
    THEN
    FOR s IN 1 .. l_msg_count
    LOOP
    l_sql_errmsg :=
    SUBSTR (
    RTRIM (l_sql_errmsg)
    || ' , '
    || RTRIM (
    fnd_msg_pub.get (p_encoded => fnd_api.g_false)
    1,
    500
    END LOOP;
    ELSE
    l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
    END IF;
    dbms_output.put_line(' Error Message '||l_sql_errmsg);
    ROLLBACK;
    RETURN;
    END IF;
    END IF;
    END;
    Update 2 - Update state to 'VI','PR' where country is in 'VI','PR'
    BEGIN
    IF (i.country = 'PR' AND (i.state <> 'PR' OR i.state IS NULL))
    OR (i.country = 'VI' AND (i.state <> 'VI'OR i.state IS NULL)) THEN
    v_prvi_count := v_prvi_count + 1;
    dbms_output.put_line(' State to PR/VI Location_id '||l_location_rec.location_id);
    SELECT DECODE (i.country,'PR','PR','VI', 'VI') INTO l_location_rec.state
    FROM apps.hz_locations WHERE
    location_id = l_location_rec.location_id;
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
              IF l_api_status <> fnd_api.g_ret_sts_success
              THEN
              dbms_output.put_line(' Error In API with status of '||l_api_status);
              IF l_msg_count > 1
              THEN
              FOR s IN 1 .. l_msg_count
              LOOP
              l_sql_errmsg :=
              SUBSTR (
              RTRIM (l_sql_errmsg)
              || ' , '
              || RTRIM (
              fnd_msg_pub.get (p_encoded => fnd_api.g_false)
              1,
              500
              END LOOP;
              ELSE
              l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
              END IF;
              dbms_output.put_line(' Error Message '||l_sql_errmsg);
              ROLLBACK;
              RETURN;
    END IF;
                   dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    END IF;
    END;
    Update 3 - Update Country code to 'US' where state code is either 'PR' or 'VI'
    BEGIN
    IF l_location_rec.state = 'PR' OR l_location_rec.state = 'VI'
    THEN l_location_rec.country := 'US';
    v_countr_count := v_countr_count + 1;
    dbms_output.put_line('PR/VI country to US Location_id '||l_location_rec.location_id);
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
    IF l_api_status <> fnd_api.g_ret_sts_success
              THEN
              dbms_output.put_line(' Error In API with status of '||l_api_status);
              IF l_msg_count > 1
              THEN
              FOR s IN 1 .. l_msg_count
              LOOP
              l_sql_errmsg :=
              SUBSTR (
              RTRIM (l_sql_errmsg)
              || ' , '
              || RTRIM (
              fnd_msg_pub.get (p_encoded => fnd_api.g_false)
              1,
              500
              END LOOP;
              ELSE
              l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
              END IF;
              dbms_output.put_line(' Error Message '||l_sql_errmsg);
              ROLLBACK;
              RETURN;
    END IF;
    dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    END IF;
    END;
    Update 4 - Update state code to NULL where state code is NOT NULL and country code is not in US or CA
    IF l_location_rec.country NOT IN ('US','CA') AND l_location_rec.state IS NOT null
    THEN l_location_rec.state := FND_API.G_NULL_CHAR;
    v_null_count := v_null_count + 1;
    dbms_output.put_line('Non US/CA to Null Location_id '||l_location_rec.location_id);
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
    IF l_api_status <> fnd_api.g_ret_sts_success
              THEN
              dbms_output.put_line(' Error In API with status of '||l_api_status);
              IF l_msg_count > 1
              THEN
              FOR s IN 1 .. l_msg_count
              LOOP
              l_sql_errmsg :=
              SUBSTR (
              RTRIM (l_sql_errmsg)
              || ' , '
              || RTRIM (
              fnd_msg_pub.get (p_encoded => fnd_api.g_false)
              1,
              500
              END LOOP;
              ELSE
              l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
              END IF;
              dbms_output.put_line(' Error Message '||l_sql_errmsg);
              ROLLBACK;
              RETURN;
    END IF;
    dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    END IF;
    END LOOP;
    v_countr_count := v_countr_count +2;
    dbms_output.put_line('Total Count'||v_total_count );
    dbms_output.put_line('PR/VI Conversion Count'||v_prvi_count );
    dbms_output.put_line('PR/VI to US Conversion Count'||v_countr_count );
    dbms_output.put_line('Non US/CA State Null Count'||v_null_count );
         BEGIN
         SELECT
         count(*) into v_rem_recs
         FROM hz_cust_site_uses_all hcsua,
         hz_cust_acct_sites_all hcasa,
         hz_party_sites hps, apps.hz_locations hl,
         hz_parties hp,
         hz_cust_accounts hca
         WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
         AND hcasa.party_site_id = hps.party_site_id
         AND hps.location_id = hl.location_id
         AND hp.party_id = hps.party_id
         AND hca.cust_account_id = hcasa.cust_account_id
         AND hca.party_id = hp.party_id
         AND hl.country NOT IN ('US','CA')
         AND hps.party_site_number NOT LIKE 'M%';
    dbms_output.put_line('remaining count '||v_rem_recs );
         END;
    COMMIT;
         EXCEPTION
         WHEN OTHERS THEN     
         dbms_output.put_line('Error in Program: ' ||' Error Message ' || SQLERRM);
         ROLLBACK;
    END;
    SELECT
    hl.location_id,hl.state, hl.country,
    hcasa.org_id
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%';

    You may want to zero in on the part of the code that throws this error.
    (i)
    Try executing a small part of your code, while commenting out the rest. If that is successful, execute a slightly bigger part of the code, and so on successively. Once you know, where exactly the code is failing, it should be easier to create a small testcase against your data and investigate the problem.
    (ii)
    Check those local variables and the values that get assigned to them. It is a good practice to anchor local variables to database columns. That way, there will be less surprises when the table structures are altered.
    (iii)
    The script as such does not show any glaring error, but you may want to check those procedure calls e.g. -
          hz_Location_v2Pub.Update_Location(fnd_aPi.g_True,l_Location_rec,l_Object_Version_Number,
                                            l_aPi_Status,l_msg_Count,l_msg_Data);It's quite possible that the procedure is assigning a value to an output parameter that is too small to store that.
    Note that, given such a huge script and not knowing your database, we are not particularly inclined to debug it. The only person who can make things easier for himself/herself is you.
    HTH,
    isotope

  • Open file/browse-file dialog window size too small

    It seems like the size of the "Open file" and "Browse file"-dialog windows have become too small to use efficiently.
    I'm not sure if this is related to the latest updates from testing, but it wasn't like this before. I have to resize the dialog window every time in order to be able to select files and folders.
    The changes are not saved across the same session of a program, but it does result in unpredictable behavior in gedit.
    If I resize the open file dialog, then close the dialog, then open it again, the changes are sometimes preserved, but not always. Sometimes it's small and sometimes it's resized, and there's no way of telling.
    I'm running compiz-fusion and emerald, but the bug is not related to window manager, as it's the same with metacity and openbox. So it's for all GTK programs.
    When I try to run gnome-appearance-properties, I get:
    "Unable to start the settings manager 'gnome-settings-daemon'.
    Without the GNOME settings manager running, some preferences may not take effect. This could indicate a problem with Bonobo, or a non-GNOME (e.g. KDE) settings manager may already be active and conflicting with the GNOME settings manager."
    and the problem remains no mather what GTK theme I choose.
    Is gnome-settings-daemon responsible for this kind of behavior?
    Last edited by WeeDie (2008-10-12 00:52:03)

    The issue was resolved by updating all to gnome-desktop 2.24 from testing..
    Seems like the swedish repository mirrors are a bit left behind..

  • 100% zoom is too small on screen

    Hello, I'm using photoshop CC on amacbook pro retina. I mainly use photoshop for web design and when I open a document that is 300x200 px, the 100% view is too small on screen. Any ideas, It was this way on PS cs6 also before I upgraded. I just tried to delete the prefs file and restarted PS and it did not change. I have also tried to change my screen resolution to "best for retina" and it is still the same.
    Steve

    I'm sorry, I don't mean to be condescending.  But the problem is you've paid extra for something that's actually an improvement, but now you don't want it to work any differently than what you had before.
    You don't appear to understand how images and displays actually work.  I'll try to provide an explanation...
    Images are made out of pixels.  Little squares of one and only one color each that when stacked in rows and columns together make up what we call an image.
    Your display has the ability to display little lighted squares of one and only one color each (it's really a bit more complicated than this, but I'm trying to keep it simple).  Stacked in rows and columns these tiny display sites make up your display screen.  Before the Retina display, every square inch had roughly 100 x 100 of these display sites.  Now (assuming a 15" Macbook Retina display) you have 220 x 220 of them in every square inch.
    In order to fit so many more in a square inch they have to be much smaller.  With me so far?  Each tiny display site is 1/220 of an inch on a side, by definition.
    When Photoshop displays an image, it sizes it per your guidance - you set the Zoom factor.
    100% zoom - by definition - means that one pixel from an image will occupy one display site on the screen.
    Can you now see how, since the display sites are much smaller on a Mac retina display, an image displayed at 100% will appear smaller?
    Now here's where some additional magic comes in:  The folks who programmed your operating system and browser realized that you would probably not like to see everything less than half the size it was, so they automatically use 200% (or more) zoom behind the scenes so that the pictures and stuff on web pages and application controls are displayed nice and big.  This happens with older non-retina applications automatically as well - it's called pixel doubling.
    To directly answer your question:
    Set an appropriate zoom level in Photoshop to make the image as large as you'd like to see it and you will be fine.
    It may help you to feel better to think, when you see the sharp edges of the pixels at zoomed-in sizes, that you have a display that's got such high resolution and is so accurate that you can see the edges of the actual pixels, while all the folks who don't have Retina displays are just seeing them blurred together.
    -Noel

  • How do i change font sizes and colors in ical in OS Lion.  Everything is greyed and too small.   And how do I changed the color of the scroll bars, which are now invisible?

    how do i change font sizes and colors in ical in OS Lion. Since upgrading,  all fonts are grey, instead of black,  and too small.   And how do I changed the color of the scroll bars, which also are grey and almost invisible?  And if you can asnwer this, can you tell me how to get back the email format I had before the upgrade?  I no longer have column headings and I'd like them.  Thank you. 

    Do you know about changing the font colors for ical, and the color of the scroll bars?
    No, I don't. I don't use that program; I fiddled with it just now, and could not find a way to do that.
    Perhaps someone else will have an idea.

Maybe you are looking for