SQLJ Expert Opinion

Hello,
I need to have some expert opinion the code where I have used SQLJ, whether it is alright or anything to be changed. I use this to fetch results from a remote table and populate in local table in every half an hour.
Thanks and below is my code.
***Code**
public static void getDataLMStation()
try {
Oracle.connect("jdbc:oracle:thin:@xxx:1580:xx","xx","abc",true);
#sql iterator SeatCursor(String LOCATION, String PRODUCT_TYPE,String STOCK_POSITION, Timestamp READ_DATE);
SeatCursor sc;
#sql sc = { select LOCATION,PRODUCT_TYPE,STOCK_POSITION,READ_DATE from PORTAL_STOCK@abc};
System.out.println("sql "+sc);
while (sc .next())
#sql { insert into PORTAL_LMINVENTORY(LOCATION,PRODUCT_TYPE,STOCK,DT) values(:(sc.LOCATION()), :(sc.PRODUCT_TYPE()),:(sc.STOCK_POSITION()),:(sc.READ_DATE())) };
} sc.close();
Oracle.close();

It looks correct however, i am not sure you can use the same execution context for retrieving data from the iterator and processing the INSERT.
Fwiw, i covered SQLJ 10g in my just released book http://www.amazon.com/gp/product/1555583296/
Kuassi - blog http://db360.blogspot.com/

Similar Messages

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • Required Expert Opinion

    Dear All,
    Required expert opinion about following points:
    1) In peak hours our database concurrent session aprrox. 70-80 sessions
    2) Can we configure shared server mode, presently our server configured dedicated mode??
    3) If we go for Shared Server how much dispatchers and shared servers we define, we have 2GB memory and dual processor in Server Machine.
    4) We have just 200 mb undo tablespace is it enough, we have done autoextended on, what is recommendation about it is it enough space??
    5) We have just 3 online redo groups and each have 1 member, is it enough our alert log file continuously showing thread about redo file.
    6) We don’t have archive log mode, and we just rely on Imp – Exp for backup, what is recommendation about it?
    7) We didn’t multiplexing control files and redo log files, what is recommendation about it.
    Regards,

    6) We don’t have archive log mode, and we just rely on Imp – Exp for backup, what is recommendation about it?
    depanding on ur database requirements if ur database have no downtime. ( 24x7) then "must" run ur database in archive log mode.
    any why what is ur oracle version. ?
    7) We didn’t multiplexing control files and redo log files, what is recommendation about it.
    You must do multiplexing of ur control files. it is recommended and redo log file too.
    ) We have just 3 online redo groups and each have 1 member, is it enough our alert log file continuously showing thread about redo file.
    it is ok but i check reguralary ur alert.log file if ur got any problem regarding redo log then increase member in group.
    normal configuration like . 2 group and 2 member of each group. ( and also depand on nature of database).
    4) We have just 200 mb undo tablespace is it enough, we have done autoextended on, what is recommendation about it is it enough space??
    what is ur undo_retention = value .
    but it ok.
    plz specify ur database nature. further depand on nature of database.
    how much undo generate in /sec.
    2) Can we configure shared server mode, presently our server configured dedicated mode??
    but why what is requirement.
    hope this help

  • Need experts opinion... Should I use smcFanControl?

    I've recently purchased a MacBook Pro 13" with an i7 processor and 8GB of RAM and have been watching flash player videos on the internet and playing pretty basic games that use programs such as Java and have experienced temps topping at 101 degrees Celsius. I'm not an expert with laptops, but I have done a TON and I mean HOURS of reading online for the past several days and have read posts where people have encouraged the use of smcFanControl when needed and read the opposite side where people say to not mess with it and trust in Apple's engineering. From my basic understanding, it seems like more acceptable temperatures should be around 80-90 degrees Celsius for these tasks. Am I correct in this thinking to protect my laptop? This is my 1st laptop and I want to make sure I can make it last as long as possible, so what's the truth? Should I use smcFanControl just when I plan to play games or watch flash player videos? If you've used smcFanControl for years, please speak up along with anyone else who knows a lot on this issue. Thanks!!

    daitkarsachin wrote:
    hi ,
    here is my question again..my xml will have
    <Message>
    <ATO>
    <somefiled="X" type=int value=35 />
    </ATO>
    <FIX>
    <somefiled="Y" type=String value=50 />
    <FIX>
    </Message>
    Now first i have to parse this xml ..then my java program is going to accept value from user ..and depending on user specified value i've to use either ATO or FIX fields...e.g if user value is 35 then my program should use fields within ATO node.
    You will read the XML structure into some kind of memory model. When the user supplies a value you will search for a matching value (likely from a collection such as a map or list) and return the value in that object that you locate.
    what should be done for this ..
    See above.
    and what if i change values in my xml file..will i have to restart my application to load xml again ?
    If you change the file on the filesystem, you should simply be able to re-parse the XML file and update your in-memory model. If you instead update your in memory-model, you can serialize the model back to XML on the filesystem. Neither needs to necessarily have anything to do with application start-up (other than the fact that you would normally read in the XML model then, but updating is a separate concern, as would re-reading it).
    - Saish

  • Just to know your expert opinion.

    Hi folks,
    Few days ago I installed the CE 7.1 EhP1 on my laptop and since then I've been playing around with Visual Composer 7.1. Iu2019ve to say this tool is very easy to use, very low learning curve and the look and feel aspect is great. Although, after developed some models and read some related documentation, I got the feeling this tool is more oriented for dashboards, listing table content, charts, BI reporting, etc and it doesn't seem so good for transactional models, I mean using several BAPIs to do insert/update, delete, etc.
    Anyone has been using VC for transactional purpose? Which are the strengths and weaknesses? And for the weaknesses, which workarounds do we have?
    Thanks in advance,
    Jorge.

    Hi Jorge
    Take some help form following expert's doc
    1.[VC Survey|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b2d5dd-c74c-2a10-e2b6-eac472b95838]
    2.[Technical White Paper|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109f59ae-3039-2a10-e484-c0d6516596fa]
    3.[Vc and Portal |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ff65b5a2-0a01-0010-5b97-e747192a1d49]
    Regards
    Satish Kumar

  • JDK1.3 and Netmeeting Not compatible??  Need expert opinion! Thanks!! :)

    Hi Everyone!! :)
    I have researched this topic and have not been able to find a decent answer yet. So I'm asking the experts now!! :)
    I have a java application written and compiled in jdk1.3. When a user runs this application remotely through netmeeting, they only get an intial gray frame, but nothing shows up on it. The menus and other GUI stuff ARE usuable, just not visible to the user. NOTE- if watching from the computer where the application is actually run from, everything initializes just fine. I've read that this is a problem in general with jdk1.3. Has anyone had any success with jdk1.4 and Netmeeting? Or does anyone know of a way to get to force jdk1.3 to work with netmeeting?? The later of the two would be preferable due to compatiblity issues with other programs and jdk1.4...
    If I find something useful myself, I'll post it, but right now I've hit a dead end. ANY ideas would be great! ;)
    Thank You!!
    Katie

    Sounds odd...I'm sure that the same technology used in Netmeeting was used in Remote client access...and I can run my applets thru Remove access with no problems. I usually find problems like this are related to a graphics problem...like colors too high, resolution too high, or the video acceleration is too high.

  • Need expert opinion

    hi experts,
    we are going to setup Oracle RAC of 4 nodes using IBM P-series servers with IBM SAN DS-4800. the space is minimum 3 TB. now what I want is to implement ASM Volumes and OCFS for Database Files, FlashBack and OCR, Voting Disk respectively. now what I'm planning is to make
    (ASM) 2 Volumes with Normal Redundancy for Database Files and
    (ASM) 1 Volume for FlashBack with External Redundancy and
    (OCFS) 1 Volume for OCR and Voting Disk with External Redundancy.
    Now plz guide me whether you think its an optimal solution or not? I would appreciate all kind of suggestions and recomendations.

    I would insist on these disks being striped and mirrored on the storage array/network and be given to the o/s as the largest possible LUNs.
    On the o/s side, I would partition one of these into 2 partitions. One for OCFS2. The remaining partition for ASM. The other LUNs all ASM volumes.
    The OCFS partition need not be large. The voting and registry files are small. But having a clustered file system is very useful (think Oracle database directories being available on all nodes, common set of scripts and files available on all nodes, etc).
    In ASM, the LUN disks (raw devices or multipath devices if not using the ASMLib kernel module) will be defined as one or more disk groups with external redundancy.
    I would not bother managing the LUNs as separate disk groups and trying to spread and balance I/O by creating some datafile one one disk group and others on the other disk groups on the RDBMS side. ASM does all that for you.
    Also, actual I/O bandwidth is a primary factor of the HBAs - and the size and number of I/O pipes to the storage device. It does not make sense wanting to manage those aspects at RDBMS level.

  • Need Expert Opinion on 3D LED TVs

    Hi, I'm a movie critic for a local magazine in the city.  My new assignment is to critique about 50 movies in a two week period, all 3D movies.  I've heard about the amount of strain on the eyes from long sessions.  Are there any 3D LED TV's that cause little to no strain on the eyes?  

    theres a bit of misinformation here.  In the traditional sense, yes, the Cinema 3D TV's are technically Full HD (1080p resolution), but you are still only seeing 540 lines of resolution for each eye.  Yes, all of the pixels are active simultaneously, but the image you are seeing for each eye doesn't even meet "Enhanced Definition" standards, let alone HD standards.  Active shutter 3D, on the other hand, Outputs 1080p Resolution to each eye.  Active shutter technology gives a significant improvement to the image detail.
    The only benefit of passive shutter 3D technology is the cost of the glasses.  When compared to a Plasma TV however, which are not only cheaper, but provide better 3d performance (Active Shutter, less crosstalk, no motion issues, better PQ, higher resolution, etc.), you'll find that it's a much better deal.  You'll probably even save money, and end up with greater performance for both 2D and 3D.  
    As a movie critic, I assume you need to be giving people the best/most accurate review possible.  This means moving up to a larger size television (55" at the very smallest), and picking up a set with at least decent quality.  I've watched 3D on 90% of the 2012 3D televisions on the market, and you'll find that some of it comes down to personal preference and changing settings within the television to adjust comfort level. When it comes to 3D, larger is better, and you will find your self wishing you picked up a larger TV.  (With a 65VT30, I still find myself edging the couch much closer to the TV) 
    Quick question, are these reviews focused more on the movie content? or picture quality/3D quality? The answer to those questions will give the best indication on which TV is the best option for you.   
    Out of all of the TV's I've watched, I've found the Panasonic plasma TV's to have the least amount of fatigue (aside from the inferior passive shutter LG LED TV's).  You can reduce fatigue even further by making adjustments to the 3D depth.  Active shutter LED TV's will be slightly more fatiguing due to flicker and motion judder (with the exception of top of the line models from Samsung or Sony).  Samsung plasmas are slightly more fatiguing than the panasonics, but the difference is subtle.  My TV recommendation would be a Panasonic 60ST30, which has one of the best price/performance ratios of any 2012 TV.  If you insist on getting an LED TV, I would recommend a UN60D8000, which will give you the best 3D performance (on par with or greater than plasma 3D performance), but you'll find yourself in a much higher price bracket (money better spent towards a PN64D8000 or 65GT30/VT30 plasma TV).
    Again, some of what I've said is subjective, but i've given my opinion.  If you can narrow it down to a couple of models, then head into your local best buy and pick your favorite.

  • Expert Opinion - Web Site Moved, Gallery's Won't Display

    Hi,
    In an effort to be pro-active, I moved this website from MobileMe to GoDaddy. Everything transferred but the Gallery's wont dispay on the GoDaddy Site.
    Specifically "Photos" & "My Albums". Any thoughts on how to resolve this? My preference is to modify the html files and not have to republish within iWeb.
    Original - http://web.me.com/dougjardine/dougjardinephotography.com/Photos.html#0
    GoDaddy - http://dougjardinephotography.com/Photos.html
    Original - http://web.me.com/dougjardine/dougjardinephotography.com/My_Albums/My_Albums.htm l
    Godaddy - http://dougjardinephotography.com/My_Albums/My_Albums.html
    Thanks in advance

    As Wyodor pointed out it's obvious that the media folder for each of the pages, My Photos and My Alubms have not been fully uploaded.  So there's no editing you can do to get them to show.  You will need to upload those two media folders to your GoDaddy account.
    You won't have to republish, just upload those two folders using a FTP client like  Cyberduck or Transmit Both allow you to view your account on GoDaddy in Finder like windows that will allow you to drag and drop from your Desktop into your site folder.
    I do not have access to the original iWeb Sites folder.
    Why not?  Since the original site is still online you should have access to the website files as long as you're logged in to your MobileMe account in the System/MobileMe preference pane.
    The files are on your iDisk. While in the Finder use the Go menu and select Go ➙ iDisk ➙ My iDisk.  Your iDisk will then mount on your Desktop. 
    Open it and go to the iDisk/Web/Sites/dougjardinephotography.com folder.  It will contain all of you website files, the html files as well as the image files. 
    Drag that folder to your Desktop and you will have easy access to them to drag into your GoDaddy account.
    Happy Holidays

  • I REALLY need expert opinion with my mac/fcp shopping list!

    I work in TV and I'm buying an hdr sr12 so that i can work on my own projects, move my skills along etc...
    To edit the footage I'm thinking to buy a 15" 1st generation macbook pro and fcp studio 2??? is this what i need? could i get away with spending less and getting different versions of either? - Any advice is a huge help. It's taken me weeks to get this far.
    Cheers Dan

    will i get away with a powerbook g4 and an older version of fcp to edit the hd footage?
    It depends on the flavor of HD and which version of FCP you have. For example, FCP HD (version 4.5) only works with one flavor of HD: DVCPro HD. If you're working with HDV, you'll need FCP 5 or higher. For AVCHD, you'll need FCP 6 and an IntelMac. Other HD incarnations have their own requirements.
    -DH

  • Parsing an string by occurances of "-", and an expert opinion of alternative

    Hi Everyone I have a drop down with this format data:
    "001-9122-349-0000-000000-001-00-000"
    Need the data be parsed at "-" occurrence, which essentially breaks into 8 parts, and then populated into individual text fields!
    Does anyone have a script to do this? or a suggestion to do it smarter?

    If the fields are named something like Text1 to Text8 you can use this code as the field's custom validation script (make sure you tick the option to commit the selected value immediately):
    var v = event.value.split("-");
    for (var i=1; i<=8; i++)
         this.getField("Text"+i).value = v[i];

  • Expert opinion needed: Best practices to handle huge rowsets on UI

    Hi All,
    I need to know what are the best practices from Oracle to handle huge rowsets on the UI.
    My ADF 11g app is a custom monitoring cum reporting tool for a highly active integration solution.
    The user can give me a selection criteria say show transactions between yesterday and tomorrow and our highly active transactional system may return upto 5000 records.
    I am showing these records in a tabular format and since pagination is not there we are depending on auto scrolling which is kind of slow.
    So please advice me what options come to your minds for showing/informing users of such rowsets.
    I am aware ideally UI should not have more that a couple hundred records but our use case does not adhere to that.
    Thanks

    since pagination is not there I'm not sure what you mean by this, the ADF Faces table does pagination when you scroll - so if your business service has 5000 records but the rows property of your table is set to 25 - you'll just fetch 25 records to the client.
    When you scroll down you'll fetch another 25.
    This type of thing is automated for ADF BC data controls - and you can control the range set.
    We also generate the code needed for EJB Facades to do this with JPAs.
    If you have your own Java class as a data source you'll need to implement this pagination on the business service side see exapmle 37 here: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • Need experts opinion on AS2 troubleshooting

    In two separate instances with partners i configured File sender channel with AS2 reciever.
    Getting three different errors as below:
    First customer  : I get "Delivered" but in Technical message  "Validated-synchronous;Negative MDN Reason: MDN Disposition Modifier-Extension is error-Decryption failed"
    Second customer   : I get "Delivering" and later time out.
    What can be different causes for these two types of errors. ?
    Regards.
    Aditya Sharma.

    Hi Aditya,
    A negative MDN does not necessarily mean a technical problem. Check with your AS2 partner why your message has been rejected.
    A time out means that you cannot reach you AS2 partner on time.
    Check your connection to that partner and try again. Perhaps a simple ping from the SAP PI machine could already give you an idea.
    Kind regards,
    Dimitri

  • Query Exception Expert Opinion Needed

    HI
    WE have this particular case we are yet to find a problem on, your assistance with this would be awesome.
    SO the problem is as follows:
    - we have two Key figure (K1 & K2)
    - Many conditions based on the two key figures should be shows in different colours
    Ex:
    Green - k1 (85 % or Greater) and K2 (Between -5% and +5%)
    Blue - K1 (80% or Greater)  and K2 (Between -8% and +8%)
    White - K1 (75% or Greater) and K2 (Between -10% and +10%)
    Red - Everything else in Red.
    Thanks you for your help with this....
    D

    Hi Darshak,
    Green - k1 (85 % or Greater) and K2 (Between -5% and +5%)
    Blue - K1 (80% or Greater) and K2 (Between -8% and +8%)
    White - K1 (75% or Greater) and K2 (Between -10% and +10%)
    Red - Everything else in Red.
    To achieve this you need to create exceptions in the query designer.
    Create a exception as named "Green K1"
    Green >select Good 1 in alert level>operator ">">Values "85%">click transfer
    and create one more "Green K2"
    select Good 1 in alert level>operator "between">Values "-5% and +5%"-->Click transfer
    Like this do to other colors also ... but you cannot achieve the BLUE, WHITE colors.
    You have only 3 colors, Green, Yellow, Red.
    If you want other than this then you need to work on the Excel Macros... Which is lengthy and trouble some process.
    Regards,
    Ravi Kanth

  • Multi outs expert opinion please/possible bug?

    So i've been tearing my hair out (what's left) over the multi out thing......I know all the tricks....or so I thought.
    No matter what I did, no sound would playback (stylus rmx/ultrabeat were tried) I kept checking the environment, just in case there was something I was missing, making sure that I had the output b linked up with aux 3-4...etc etc......nothing.
    Then I hit play.......by accident....and they work. bizzare to me!
    Is it something I am doing wrong?
    Has anyone else noticed this?

    Oh man...
    You've hit on one of the truly weak points of Logic -- the EASY ability to assign multiple outputs from a multitimbral plug.
    1. a key points EASILY overlooked is that your "host" audio instrument has to be set to Channel=ALL.
    2. you absolutely must use a multitimbral version of the plugin, not just a stereo version
    3. it's IMPERATIVE that you use transformers and/or channel splitters to ensure that the audio instrument itself receives only automation data on channel 1 (or whatever channel your output 1/2 instruments are set for), and that the various Auxes receive only automation data on the channels which are intended to drive their automation.
    4. At least in the case of GPO -- and I daresay it may be true for other non-Logic plugs -- you cannot have multitimbral and stereo versions of the same plug in the same song. Particularly if you're trying to automate these plugs, you're in for a bit of an automation/digital noise/zippering/hash/distortion nightmare

Maybe you are looking for

  • Extension does not exist : File - XI - IDOC

    Hello, I have an IDOC MATMAS03 with an extension, so called MATMASA03.ZMATMASX IDX2 - metadata upload done more than once ! OK mapping from file to IDOC: test ok (Name of Interface ZMATX.MATMAS03.ZMATMASX) config: test of communication from file syst

  • Stamping multiple images

    I've been using Aperture for about two years, and was one of the early adopters of A3. Until recently, I've had no real issues to speak of, but now when I try to stamp multiple images, or even select a couple images to apply a rating, only the last i

  • Mapping help-- Number format

    Hi, I have a requirement in the mapping where in we receive an XML field with value '674.585' needs to be converted to an xml field as '674.59'..(Two decimal rounding) I tried using format number but it does not convert '.585' to '.59' but it does co

  • Message table is not populating in CALL Transaction Method.....

    Hi, Im developing a BDC program for Tcode CV01N...Document link...Problem is when document link is created Successfully.then Message table is not getting populated with message....but this working fine when there is a error then it is population. wha

  • Apps on CC menu

    I subscribe to a single apps: Dreamweaver CC.  On the Adobe CC Menu there are Apps that have "Try" or "Install" buttons. Are those Apps with "Install" next to them (Bridge CC, Adobe Scout CC, Extension Manager CC, etc)  available for a single apps su