&, &&, and @s causing ORACLE Database Project issues And SLOW Run

Hello I am encountering an issue while "Run"ing functions/sp/packages from an ORACLE DATABASE PROJECT.
We are supporting a legacy application that utilizes HTP.PRINT. We decided that it would be nice to have it as an Oracle Database Project but when we save the file it is croaking at us.
We are using
ODTwithODAC1110720
Visual Studio 2008
Oracle 10g r2
The specific issue happens when an @ is the first line in the file and when utilizing && in javascript (all being emitted from HTP.Print). Now I know we can work around these limitations (escaping the &s and wrapping the line) but is there any way to get these to work in the IDE w/o the escaping and such?
For instance:
In visual Studio Create a Function1 as such
DROP FUNCTION FUNCTION1;
CREATE FUNCTION FUNCTION1 (
  PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT ('    if (popupStatus == 1 && okDisabled==false) {');
         htp.print('
<style>
@media printfooter; {
}   etc etc etc   ');
  RETURN PARAM1;
END FUNCTION1;
/You will get this result:
Connected.
------ Running '***\Project1\Functions\Script1.sql' @**.** ------
Function dropped.
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled:
Operation canceled by user
-- this locks the file
If I go ahead and hit OK (in a new unlocked file)
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled: old   5: HTP.PRINT ('      if (popupStatus == 1 && okDisabled==false) {');
new   5: HTP.PRINT ('      if (popupStatus == 1 ==false) {');
**/You will notice that when the function is created it just skips the & and @s
FUNCTION FUNCTION1 (
  PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT ('    if (popupStatus == 1 ==false) {');
         htp.print('
<style>
}   etc etc etc   ');
  RETURN PARAM1;
END FUNCTION1;and just a little insult to injury on this, each "run" takes upwards to 20-25 seconds from Visual studio (this is a deal breaker for us to use the tool -- when SQL Developer takes mere moments) -- is there a configuration setting awry?
So I guess the questions are these (sorry for the ramble)
1) How, in the VS 2008 IDE, can we accommdate & and && and @s without escaping/workarounds? (these work fine in developer)
a) I have noticed that the escape character work around is ONE way ... thus if I have the package body in the Oracle Database Project, add "set escape \ " then escape all of my & and && and @s it works. but... the code is saved in Oracle without the escape characters (understandable) but if it changes in Oracle then I push the changes down I lose all of my escape characters.
2) Why does each RUN take so long? working in developer & even the Server Explorer edited function are almost instantaneous.
-- I want to add, during my escape character tests EACH RUN took upwards to 30-45 seconds, so for 4 small simple test cases it was approaching 2 minutes of just save time...
so far these two shortcomings are barrier for our company to utilize these features (it's hard to try to sell the dept. on anything that doesn't handle escapes well AND -- the big AND -- takes entirely too long to save). any advise?
thnx
Edited by: tanging on Jul 1, 2010 4:47 AM

we can just set the escape character and it works fine,
set escape '~'
create or replace ....when/if we have to pull down from production level we'll have to be mindful to change & and @s to have a preceding escape character (and add the set escape to the top) --> which is a step back from SQL Developer which handles this flawlessly.
now the timing -- I believe it to be a timing issue on our network (therefore I've wasted your time). We have a default shared drive that is anything but speedy and our "default" homes in Visual Studio pointed to the shared drive. While the project/solution were on our local drives - the temp drive was the slow default. Changing that locally seems to have made the timing issue go away. (although on the first save of the body spec after the change and reboot it took 35 seconds but on subsequent runs it Ran in acceptable time limits).

Similar Messages

  • Convert flat file to XML document and store into Oracle database

    First:
    I have a flatfile and created external table to read that file in Oracle
    Now I want to create an XML document for each row and insert into Oracle database, I think that XMLtype.
    Could you please provide me some information/steps.
    Second:
    Is there performance issues, because everyday I need to check that XML document stored in the database against the in coming file.
    Thank You.

    Oracle 11g R2 Sun Solaris
    Flat file is | (pipe delimited), so I did create an EXTERNAL Table
    row1     a|1|2|3|4
    row2     b|2|3|4|5
    row3     c|6|7|8|9
    I want to store each record as XML document. So it will be easy to compare with next day's load and make insert or update.
    The reason is:
         First day the file comes with 5 columns
         after some days, the file may carry on some additional columns more than 5
         In this case I do not want to alter table to capture those values, if I use XML than I can capture any number of columns, CORRECT!. Please make me correct If I am wrong.
         This is the only reason to try to use the XMLType (XML Document)
         On Everyday load we will be matching these XML documents and update it if there is any column's value changes
    daily average load will be 10 millions and initial setup will be 60-80 millions
         Do I have anyother option to capture the new values without altering the table.
    Please advise!.

  • Login page user name and password for Oracle Database

    Hi,
    I created a login.jsp page with username,password and a submit button. How can I validate this username and password from my Oracle database username and password?
    I am using NetBeans5.5 with Tomcat5.5.17. Right now I have hardcoded username and password in my persistence.xml.
    Anyhelp?

    Thnx BalusC for ur reply. Let me explain my issue.
    I have created a login page. and user is able to enter user name and passowrd on this page. User is supposed to press a 'submit' button when user enters username and password to connect to database. What should I write in 'submit' button's action to let user allow to proceed if username and password are correct i.e. username and password of my oracle database. (usename=scott and passowrd=tiger).
    plz help.

  • Difference between upgrdae and migration about oracle database

    Difference between upgrdae and migration about oracle database
    please give the comments

    Well, the question is almost philosophic...<br>
    In 9i, there is a Migration Guide whereas in 10g there is a Upgrade Guide.<br>
    Furthermore, in 9i, there is the command line startup migrate whereas in 10g that's startup upgrade.
    Somebody think upgrade when go to new release, and migration when go to new version.<br>
    Others think upgrade when new version replace database in place, and migration when new version include a move of database.<br>
    Another point of view is : upgrade is for technical, and migration for application/data.<br>
    <br>
    Well, after these explanations, your upgrade/migratation notion will not be more clear, but I think that is not very important, only a terminology game. The most important is to know what you need : new version or new release.<br>
    <br>
    Nicolas.

  • Can i  use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?

    Can i  use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?

    4195bee8-4db0-4799-a674-18f89aa500cb wrote:
    i dont have access to My Oracle Support can u send text or html of document please?
    Moderator Action:
    No they cannot send you a document that is available only to those with access to MOS.
    That would violate the conditions of having such service contract credentials.
    Asking someone to violate such privileges is a serious offense and could get that other person's organization banned from all support and all their support contracts cancelled.
    Your post is locked.
    Your duplicate post that you placed into the Audit Vault forum space has been removed (it had no responses).
    This thread which you had placed in the Solaris 10 forum space is moved to the Audit Vault forum space.
    That's the proper location for Audit Vault questions.

  • Oracle Database Character set and DRM

    Hi,
    I see the below context in the Hyperion EPM Installation document.
    We need to install only Hyperion DRM and not the entire Hyperion product suite, Do we really have to create the database in one of the uft-8 character set?
    Why it is saying that we must create the database this way?
    Any help is appreciated.
    Oracle Database Creation Considerations:
    The database must be created using Unicode Transformation Format UTF-8 encoding
    (character set). Oracle supports the following character sets with UTF-8 encoding:
    l AL32UTF8 (UTF-8 encoding for ASCII platforms)
    l UTF8 (backward-compatible encoding for Oracle)
    l UTFE (UTF-8 encoding for EBCDIC platforms)
    Note: The UTF-8 character set must be applied to the client and to the Oracle database.
    Edited by: 851266 on Apr 11, 2011 12:01 AM

    Srini,
    Thanks for your reply.
    I would assume that the ConvertToClob function would understand the byte order mark for UTF-8 in the blob and not include any parts of it in the clob. The byte order mark for UTF-8 consists of the byte sequence EF BB BF. The last byte BF corresponds to the upside down question mark '¿' in ISO-8859-1. Too me, it seems as if ConvertToClob is not converting correctly.
    Am I missing something?
    BTW, the database version is 10.2.0.3 on Solaris 10 x86_64
    Kind Regards,
    Eyðun
    Edited by: Eyðun E. Jacobsen on Apr 24, 2009 8:26 PM

  • Read data from Excel and write into oracle database

    Hi
    I want  to know how can i read data from excel and write into oracle database using java.Kindly help me out to find a solution.
    Thanks and Regards
    Neeta

    Hai,
    I am suggesting the solution.
    I will try out and let u know soon.
    Make a coma separated file from your excel file.
    Assuming that your requirement allows to make a csv file.
    This file may be passed as an file object to be read by java.Using JDBC you must be able to populate the data base.You can also use String Tokenizer if needed.
    You do not want to  go via sql Loader?
    For reading the excel file itself do you want java?

  • Adding existing subversion project to an Oracle database project

    Is there an easy way to add an existing set of files to a new ODT project? I'd like to be able to get the latest version from SVN and then place my oracle database project in the same directory. I can "add existing item.." just fine but the problem is the folder structure. There is no "show all files" button in the solution explorer so I can add existing folders that way. I can't create a new folder because I get a warning that it already exists. I'd like to be able to use visual studio without maintaining two sets of source control files on my local disk.

    1.Dowbload ojdbc6,jar file.
    2.Right click on project name > Properties > Libraries > Add Jar

  • Any place I can find Oracle database known issues

    Hi
    Is there any place I can find Oracle database known issues list for specified release?
    Thanks

    Specifically, see MOS Docs
    555579.1 - 10.2.0.4 Patch Set - Availability and Known Issues
    738538.1 - 11.1.0.7 Patch Set - Availability and Known Issues
    HTH
    Srini

  • After downloading itunes 10.7 music videos and movies cause itunes to stop working and close

    After apparently successfully downloading latest itunes 10.7, I can play music only. Music videos and movies cause itunes to stop working and close. windows 7 home premium. Help!

    Try the following user tip:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • Trying to add oinstall and dba (for Oracle Database and Enterprise Manager) to my LDAP account

    I want to add groups to my LDAP user account abc. Currently I have uid=243782(abc) gid=10(wheel) groups=1275(nsn-emp),9834(nsn-moh),10(wheel), but I want groups oinstall, oper and dba added.
    According to the database installation document, local os group must include oinstall and dba.
    The following local operating system groups and users are required if you are
    installing Oracle Database:
    ■ The Oracle Inventory group (typically, oinstall)
    ■ The OSDBA group (typically, dba)
    ■ The Oracle software owner (typically, oracle)
    I tried to add abc groups oinstall and dba using root user, but it failed.
    Could you please inform me how to add these groups?
    Thanks.
    lf

    Folks,
    Hello. Thanks a lot for replying. I do the following command: [user@localhost bin]$ wget http://localhost.localdomain:1158/em
    The command returns the message:
    --11:36:33-- http://localhost.localdomain:1158/em
    Resolving localhost.localdomain... 127.0.0.1
    Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
    HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
    Length: unspecified
    Saving to: `em'
    [ <=>                                                                                                              ] 7 --.-K/s in 0.002s
    11:36:33 (4.15 KB/s) - Read error at byte 7 (Connection reset by peer).Retrying.
    --11:36:34-- (try: 2) http://localhost.localdomain:1158/em
    Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
    HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
    Length: unspecified
    Saving to: `em.1'
    100%[=================================================================================================================>] 7 --.-K/s in 0s
    11:36:34 (16.8 KB/s) - Read error at byte 7 (Connection reset by peer).Retrying.
    The above message repeats again and again until finally returns the following message:
    11:39:02 (40.2 KB/s) - Read error at byte 7 (Connection reset by peer).Giving up.
    In browser, http://localhost.localdomain:1158/em cannot display and pop up a Windows with the message: You have chosen to open whicn is BIN file from http://localhost.localdomain:1158 What sholud FireFox do with this file ? Save to Disk ?
    My question is:
    I don't know how to display http://localhost.localdomain:1158/em in Browser. How to solve the issue ?
    Thanks.

  • Are there any problems running oracle database express 10g and iis together

    Are there any problems running oracle database express 10g on an windows 2000 server or advanced server running iis 5?
    Does oracle database express cause any conflicts with iis (because of used ports etc)
    Could an server have running on it, both an website using iis and an oracle database express website without conflicts?

    I would not expect a problem under normal circumstances.
    Oracle's listener is set for a default port 1521 for database requests, port 8080 for HTMLDB requests. The database connections generally find an empty port above 1024 when establishing a connection.
    So, if IIS does not want to use 1521 or 8080, you will generally see no challenges. Even then it is fairly easy to move ORacle's port requirements elsewhere.
    Using port 8080 seems reasonably common, but that is easily changed - search for sethttpport in this forum. IIS tromping on 1521 would be rare as it has been a well known Oracle service port since, roughly, forever.

  • Oracle Database 10.2 and Client 10.2 installation problem

    Hi Everybody,
    I am trying to install Oracle Databse 10.2g and Oracle Client 10.2 on the same server(windows 2003). I have few queries :
    - Can we install both on Same Server
    - Shall be install in the same directory or each in differenct directory
    - Does each oracle database and oracle client has it's on oracle/home path
    I installed the Oracle database and check it was working fine, I have also login through "sqlplus "/as sysdba". It was ok, all the oracle services were running perfectly. But when I installed the oracle client on the same server then all the oracle services were stopped and even when I tried to restarted manualy then got error, local user cannot start the service. Aslo not able to login thrugh sqlplus.
    Could you please give your expert views.
    Thanks in advance.
    Harish

    You can have as many Oracle Homes as your require, but you should be aware that each new Oracle Home modifies PATH environment variable, so the database could have been working fine until the client was installed, which has modified the reference to the database home.
    You could modify it back from the server advanced properties at the windows control panel.
    ~ Madrid

  • Resource estimation/Sizing (i.e CPU and Memory) for Oracle database servers

    Hi,
    I have came across one of the requirement of Oracle database server sizing in terms of CPU and Memory requirement. Has anybody metalink notes or white paper to have basic estimation or calculation for resources (i.e CPU and RAM) on based of database size, number of concurrent connections/sessions and/or number of transactions.
    I have searched lot on metalink but failed to have such, will be great help if anybody has idea on this. I'm damn sure it has to be, because to start with implementation of IT infrastructure one has to do estimation of resources aligned with IT budget.
    Thanks in advance.
    Mehul.

    You could start the other way around, if you already have a server is it sufficient for the database you want to run on it? Is there sufficient memory? Is it solely a database server (not shared)? How fast are the disks - SAN/RAID/local disk? Does it have the networking capacity (100mbps, gigabit)? How many CPUs, will there be intensive SQL? How does Oracle licensing fit into it? What type of application that will run on the database - OLTP or OLAP?
    If you don't know if there is sufficient memory/CPU then profile the application based on what everyone expects, again, start with OLTP or OLAP and work your way down to the types of queries/jobs that will be run, number of concurrent users and what performance you expect/require. For an OLAP application you may want the fastest disks possible, multiple CPUs and a large SGA and PGA (2-4GB PGA?), pay a little extra for parallel server and partitioning in license fees.
    This is just the start of an investigation, then you can work out what fits into your budget.
    Edited by: Stellios on Sep 26, 2008 4:53 PM

  • How to store the rich formated text and screendumps in Oracle database

    Hi,
    I will create an FAQ management system. Users can log into the system, search and view the FAQ and answers. To be intractive, the users can also create new FAQ and add the comments on FAQ answers.
    The FAQ answers have rich formated text and the screendumps in the mid part of the answer. It should be presented in one page during user read/update the answers. How can I store the FAQ answer to Oracle database?
    Best regards,
    Ning

    I used blob to store pictures.
    The FAQ answer is the combination item of formated text and pictures. Can I use it to store?
    If I decided to use blob, how can I present the FAQ answers to the web. How can I edit the answer on the web?
    Thank you very much!

Maybe you are looking for

  • Toshiba external disk suddenly "unwritable "

    I have read through so many forums, and I have yet to read a competent response. Please understand that I am frustrated as well as that: 1) I no how to "get Info"; 2) I know how to "unlock" with the little golden padlock: 3) I do NOT wish to "format"

  • Can't hear reverb in monitored vocals

    I have read the manual on inserting reverb in a channel strip so I can hear reverb on my vocals as I record. I hear the input for the vocals in my headphones but not the inserted reverb. Any ideas?

  • Kernel/driver downward compatibility

    Dear all, I have an EL5 Update 4 installation. My WLAN card has a BCM4318 chip from Broadcom. As stated on Broadcom's home page, I normally needed a b43 driver--however, this requires kernel 2.6.25 or higher. My kernel is 2.6.18, as originally downlo

  • Can't import an album into iTunes

    a very strange thing is happening that i haven't experienced before.  i'm trying to import an album of mp3's into itunes and it simply won't work.  -drag and drop . . .  doesn't work -file-->add to library-->(open) . . .  doesn't work -right click on

  • Problem with Crystal Report XI and Regional Settings

    Dear All, I am working on Crystal Report XI under Chinese Windows 2000 Professional and Chinese Visual Foxpro 9.0. I created a User defined Function Library under VFP9.0 as an ActiveX with a function that return a String. I could saw the function in