PL/SQL Wrap files
Hi All,
Just like to know What are PL/SQL wrap files and what is the use of these files ?
Thanks
We cannot read the source of wrapped PL/SQL files. This protects your code from prying eyes, something you might wish to do for either security or commercial reasons. The important thing about wrapping is that it is one way. There is no mechanism from reconstructing the source in plain text from a wrapped procedure.
Cheers, APC
Similar Messages
-
Create sql trace files on client machine
Hi
oracle creates sql trace files on server side, what are possible and best ways of sharing those files with end users? is it possible to create them on client side instead?Dbb wrote:
Hi
Hi
oracle creates sql trace files on server side,
Yes
what are possible and best ways of sharing those files with end users?
Using shared directory. Use the parameters dump to point to it
is it possible to create them on client side instead?
No
. :-) any help with my english is wellcome :-) .does this mean sharing user_dump destination at linux level and then mounting it from client machines ( win xp )?is there any doc on this? -
How can I run a SQL script file...
How can I run a SQL script file from a location on my computer without providing the whole path?
Is there some way I can set a "Working folder" in SQL Plus??
Thanks!
TomYou can create an environment variable called "SQLPATH" which is a list of directories that SQL*Plus will search for your .SQL
scripts.
I would like to use another directory than the oracle/bin...
How can I do this ??
Hello,
U can do this by this way:
Save odm_script.sql file to the default Oracle
directory i.e. Oracle-Home/bin and Run following command
through SQL Plus.
SQL>@Script_Name
I hope this will resolve ur problem.
Regards,
Omer Saeed Khan. -
Hi,
We are using JCAPS 512. We use oracle eway to connect to Oracle 10g database. But sometimes we are getting the following exception
and suddenly all jcds stop processing. If we restart the server again job continue processing, otherwise server hangs and nothing get processed.
Exception is as follows
java.sql.SQLException: File input/output error: File input/output error: reading: java.io.EOFException in statement [SET TABLE EVENT_STORE INDEX '11183416 55935']
at org.hsqldb.Trace.getError(Unknown Source)
at org.hsqldb.Log.runScript(Unknown Source)
at org.hsqldb.Log.open(Unknown Source)
at org.hsqldb.Database$Logger.openLog(Unknown Source)
at org.hsqldb.Database.open(Unknown Source)
at org.hsqldb.Database.<init>(Unknown Source)
at org.hsqldb.jdbcConnection.openStandalone(Unknown Source)
at org.hsqldb.jdbcConnection.<init>(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.addNewConnection(DBEventStore.java:359)
at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.getConnection(DBEventStore.java:444)
at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.executeParameterizedQuery(DBEventStore.java:777)
at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.access$000(DBEventStore.java:250)
at com.stc.eventmanagement.impl.DBEventStore.getEventIDsList(DBEventStore.java:133)
at com.stc.eventmanagement.impl.DBEventStore.getEventIDsList(DBEventStore.java:115)
at com.stc.eventmanagement.impl.EventForwarderMBean.cachePersistedEvents(EventForwarderMBean.java:728)
at com.stc.eventmanagement.impl.EventForwarderMBean.setup(EventForwarderMBean.java:334)
at com.stc.eventmanagement.impl.EventForwarderMBean.invoke(EventForwarderMBean.java:565)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at com.stc.eventmanagement.impl.EventManagementService.setupEventForwarderMbean(EventManagementService.java:270)
at com.stc.eventmanagement.impl.EventManagementService.registerMBean(EventManagementService.java:147)
at com.stc.eventmanagement.impl.EventManagementService.startService(EventManagementService.java:96)
at com.stc.eventmanagement.impl.EventManagementResourceAdapter.start(EventManagementResourceAdapter.java:75)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:94)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:74)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:269)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:372)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:204)
at com.sun.enterprise.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:87)
at com.sun.enterprise.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:108)
at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:216)
at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:106)
at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:183)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:295)
at com.sun.enterprise.server.PEMain.run(PEMain.java:238)
at com.sun.enterprise.server.PEMain.main(PEMain.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
|#]
Please provide some suggestions to overcome this error
Regards
Venkatesh.SDelete the EventStoreDb.data file (its somewhere in your logical host) and restart the logical host.
-
Unable to generate SQL trace file on a 10.2.0.1.0 database
Hello,
I am unable to generate SQL trace files on a 10.2.0.1.0 database (OS is Win2003 server 64 bits).
First I tried the way I used to do it on older databases (8i and 9i) :
execute dbms_system.set_sql_trace_in_session(sid, serial#, true);
I got no error, but no file was created in the user dump dest directory.
Then I've been searching and I've tried other things :
- I changed the user_dump_dest parameter
- I changed the tracefiles_public parameter value to "true", by modifying the init.ora file
- I tried another package :
exec dbms_monitor.session_trace_enable(139)
Nothing worked, I can't create any trace file...
Does anyone have an idea about this issue ?
thank you for you help !
AntoineHello,
thank you all for replying.
I have 2 instances on this machine, and I've just realized that with the other one I have no problem to generate sql trace files as usual.
But why the hell is it impossible on the first instance ? What difference between the 2 instances can explain this ?
This is pretty weird...
Otherwise I am experiencing serious performance problems on the instance where I can't creat trace files, there must be something wrong with it, but I can't figure it out
regards,
Antoine -
Basic question on SQL database file structure
I'm learning to use JDBC / databases . I'm using JBuilder3 professional and HSQL (aka Hypersonic). I've
been following the Java Tutorial on learning databases.
So far I've sucessfully
set up the drivers / URL etc
connected to the URL
created a database (COFFEEBREAK , as per the tutorial)
added tables
added data
queried the database
------------- with the tutorial , so far so good. --------
My only database experience prior to this was using Microsoft access, where tables, data, queries etc are all
stored in one file <myfile.mdb>
But with the example I am following, not one but 4 files have been created:
COFFEEBREAK.data
COFFEEBREAK.backup
COFFEEBREAK.properties
COFFEEBREAK.script
the COFFEEBREAK.data file, looks like this (one line) in a text editor:
padding="0" cell
After I added data , using SQL ,I was expecting this file to grow ("as data rows were added") , but no change at all - still just one line.
The file that DOES change is the COFFEEBREAK.script file. The SQL instructions get added to the end of the file eg :
<various lines>
INSERT INTO FILES VALUES('.\COFFEEBREAK.properties','COFFEEBREAK.properties')
INSERT INTO FILES VALUES('.\COFFEEBREAK.data','COFFEEBREAK.data')
INSERT INTO COFFEES VALUES('French_Roast',49,8.99,0,0)
INSERT INTO COFFEES VALUES('Espresso',150,9.99,0,0)
INSERT INTO COFFEES VALUES('Colombian_Decaf',101,8.99,0,0)
INSERT INTO COFFEES VALUES('French_Roast_Decaf',49,9.99,0,0)
I had been expecting a single file ( a la Microsoft access) , with the data in it and not readable in ascii form.
Am I misunderstanding the structure of SQL / DBMS files , or is this just a pecularity of Hypersonic ??
How do I ship a finished Java application where a database can be interrogated - will the *.script file have to be shipped too? If so , all the data is there , so how is the DBMS password protected?
I'm confused ! Thanks in advance
M.Thanks again for the response trejkaz.
If the database were encrypted, you could just use an ordinary SQL query tool to dump >> all the records to a text file, which would be just as readable as the .script file!I had in mind if the user name was "Bill" with his (self selected ) password "hisPass" then the encryption key would be derived from a mangled version of those two bits of data (eg qazBillwsxhisPass or whatever). As long as the mangling mechanism was secret hopefully that would stop access through regular SQL query tools.
You're giving them the software to read the database anyway .. what's the difference if they >> read the info from the flat file, compared to reading it through a program? Through the program the data is view only (maybe with a limited subset of the fields for printing). With a flat file a potential competitor gets a jump start by having an electronic copy to bootleg.
Two examples occurred to me, one simple & one closer to what I'm trying to achieve
1) An example of a multiple choice database for students where the computer tells them how they have done - couldnt the students just look up the answers beforehand in the script file ?
2) (hypothetical example) Suppose I'm an expert on gardening & I want to set up 'electronic garden advice' Inc. I prepare a database, say about 3000 records. A typical record may have a layout based on :
question
question ref. number
region
garden style ref.
plant type main
plant type sub
disease-prone?
commercial/non commercial
criticality weighting %
substitute plants
recommended treatments
preferred season
etc . Most of us can imagine more possible fields
Anyone can pay the $ , download the database & set themselves up as an expert, maybe extracting sub sets of the data, depending on their customers needs.
But any printouts might only have say the question & question number so the whole database woulnd't be printed to a text file from my Java app . (The non printed fields are used within the Java app say for cross referencing alternatives etc) so the whole database couldn't be downloaded via a print routine to a text file.
At the moment my options seem to be:
1) different SQL database , where the data isnt stored in ascii readable form
2) Just use a csv text file instead of dbms & write my own encryption
3) Encrypt the HSQL script file, have the java app decrypt it to a temp scratch file & load that way . (the problem there seems that in a multitasking OS, the user just copies the scratch file)
4) somehow do the decryption after loading from an encrypted script file but before presenting the data on screen.
5) any other ideas you can recommend...?!
Apologies for the long response, my thoughts on this are still evolving
Thanks again
Mike2z -
How I can make SQL Insert file on schedule
Dear Community Members;
Hope all you will be perfect. I required your urgent response on my query. I want to make an SQL Insert file, means I want to insert data from query in one table and after that, the data export in an SQL file as a SQL Insert file.
All these things want to do on schedule not manually.
Can anyone help and guide me how I can do it?Dear Members;
Actually, we are working on two different applications, like sale and account. Now we want to post sale information in account system without any DBLink, for that I want to make a file where my data store in SQL Insert Statement format on scheduling, means I want to create a procedure which create this file on scheduling. After that same as I want to create a procedure in other system for read that file and execute. Now I have been found Oracle functionality but still I am facing a problem. The problem is that my procedure create a file with a single record not the all fetched record. My Procedure is as:
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
INSERT1 VARCHAR2(200);
INSERT2 VARCHAR2(200);
cursor c1 is
select T.QTY, T.SLIP_NO, T.STORE_NO, T.Item_Code
from test t
where T.STORE_NO = 1;
BEGIN
for cur_rec in c1 loop
INSERT1 := 'INSERT INTO TEST_2(Item_Code,STORE_NO,QTY,SLIP_NO) VALUES(';
INSERT2 := INSERT1||CUR_REC.Item_Code||','||CUR_REC.STORE_NO||','||CUR_REC.QTY||','||CUR_REC.SLIP_NO||')' ;
fileHandler := UTL_FILE.FOPEN('E:\Oracle\admin\udump', 'test_file2.SQL', 'W');
--UTL_FILE.PUTF(fileHandler, 'Writing TO a file\n');
UTL_FILE.PUTF(fileHandler, INSERT2);
UTL_FILE.PUTF(fileHandler, '\n commit;');
UTL_FILE.FCLOSE(fileHandler);
END LOOP;
EXCEPTION
WHEN utl_file.invalid_path THEN
raise_application_error(-20000, 'ERROR: Invalid PATH FOR file.');
END;
Please suggest/guide me where I am doing something wrong or missing. I'll thankful for your help. -
Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?
Want to change the 'default' extension for PL/SQL source to '*.prc'
When navigating 'File' / 'Save As', and selecting the 'File Type' list box,
The default 'File Type' for PL/SQL Source File is '*.pls'.
Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?
I have followed , 'Tools', 'Preferences' , 'File Types' and added '.prc' as 'Sql Script' file type, because (PL/SQL Source) is not present in the list.You can certainly overwrite the 'Save As' extension as you are saving the file. I have added an ER for more control over this functionality.
sue -
Explain plan not displayed in sql trace file
Hello,
I don't understand why in sql trace file, after tkprof transformation, for several queries the explain plan is displayed and for several queries, no explain plan is displayed.
How can I have the explain plan for all queries?
Thanks for your help.Was this a trace started on an already running task? Was the trace stopped before the task completed? Did the trace file reach its set size limit before the task compled?
In all three cases above you would have cursors that were not closed and stats information not written to the trace file resulting in incomplete data for some SQL.
HTH -- Mark D Powell -- -
Hi everyone,
I want to accomplish a task in TFS that I need to auto generate the database changes as SQL script file in drop folder for every build.
For ex.: If I add a table in a database and then check in the changes, I need to get that create table script in the drop folder as .sql file extension
I want to automate the build too for every check in. Help me out and guide me a step by step procedure because since I am new to TFS build in visual studio.
ThanksCheck out SSDT:
https://msdn.microsoft.com/en-us/data/tools.aspx
It can generate a DACPAC which can be used to update a SQL Database through the commandline. To ensure that the .sql file executed is compatible with the target database schema it contains a compiled version of teh schema and will generate the change script
on-the-fly.
If you want, you call SqlPackage,exe to generate a SQL script if you want to inspect it before executing.
https://msdn.microsoft.com/en-us/library/hh550080%28v=vs.103%29.aspx
My blog: blog.jessehouwing.nl -
hi
how can i use a external file i.e a text file or a SQL file in when button pressed trigger.
like
i have a text file like abc.txt
i want to execute the SQL in this file when i m pressing a button..
thxYou could start these <your sql_script>.sql
(batch files) from Forms with the Host() or Client_Host()
i.e
HOST (cmd ,screen);
The code you wrote in your batch_file is:
sqlplus user/pass@test @<your sql_script>.sql -
Hi DBA's
SQL Log file size occupies more disk space on the server, the overall database size is 8GB
How to decrease the SQL LDF file size on the server, please explain the suitable steps to perform
Thanks
DBAuse master
go
dump transaction <YourDBName>
with no_log
go
use <YourDBName>
go
DBCC SHRINKFILE (<YourDBNameLogFileName>,
100) -- where 100 is the size you may want to shrink it to in MB, change it to your needs
go
-- then you can call to check that all went fine
dbcc checkdb(<YourDBName>)
Andy ,
what point in asking user to use No_log and you did not even motioned about what this eveil command will do. Actually its
seriously not required reason being initial size of log file set to 8 G.
Plus what is point in running checkdb ?
I don't agree to any part you pointed
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
ODI - IKM SQL to File Append - Header not Generated
I'm using ODI IKM SQL to File Append to create a text file, but the header is not being generated. And the GENERATE_HEADER is set to Yes. The file is Tab delimited and the Heading (number of lines) is set to 1.
Seems to only be an issue with HFM files coming from the Unix server.
Any suggestions?
Thanks, MikeOk, getting the following error in step 6 - Integration - HFM_EA_Translate - Insert Column Headers
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:459)
at java.math.BigDecimal.<init>(BigDecimal.java:728)
at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.addBatch(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:662)
The last two columns in the file are numeric which seems to be causing the issue. Will change formatting for the two columns (String, Numeric, etc.) to see if I can resolve the header issue.
Thanks,
Mike -
Import /sql/tracker.sql as File Type = Application Export
Im trying to download the tracker application and dont understand this instruction
Import /sql/tracker.sql as File Type = Application Export
Does any one know what I should do.
many thanksIm trying to download the tracker application and dont understand this instruction
Import /sql/tracker.sql as File Type = Application Export
Does any one know what I should do.
many thanks -
Where are the GeoRaster PL/SQL DEMO Files
Hello,
I installed a Oracle 10g Database an looking now for the GeoRaster PL/SQL DEMO Files.
The Documentation: Oracle® Spatial, GeoRaster, 10g Release 1 (10.1), Part No. B10827-01 list in Table 1-12 some example Files which should be locatet in $ORACLE_HOME/md/demos/georaster/plsql.
Unforunatelly I couldn't find this directory on my System. I find $ORACLE_HOME/md but not the subdirectory demos. I searched my whole File-System for the example Files (georaster_demo.sql, create_georaster_table.sql ...) but got no hit.
Does anybody knows how I can get the example Files??
Thanks
Udo MartinI found it.
The Examples will be installed with the Oracle Database 10g Products installation.
Thanks
Udo Martin
Maybe you are looking for
-
I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing
-
How to determine the version of Adobe Reader X I have
How to determine the version of Adobe Reader X, I have
-
White line in the middle of my NEW IPad 2, please help
Dears, i just get my Ipad 2 (64 GB + 3G) and when i press the power button a white line occurred in the middle of the screen. your keen interest is highly appreciate
-
Problem with SQL Exception SQL0913
Hello, I am facing problem in my XI2JDBC scenario like, SQLException during query 'Select * SRSYS from NSARECP where srrecn = (select min (srrecn) from nsarecp where pdate = '0001-01-01')': java.sql.SQLException: [SQL0913] Row or object N
-
Clearing Document - Huge amount Exch/Reval entries
I have an issue with respect to clear a customer item. The customer item is cleared in foreign currency, USD and the following document is posted: USD 001 40 6677 55145