Is there a way to execute the SQL command in PLSQL block

Hi all
With reference to the above subject do you have any example.
Thanks in advance.

What sort of SQL command do you have in mind? DML can easily be wrapped in PL/SQL blocks. DDL requires the use of dynamic SQL such as EXECUTE IMMEDIATE.
Cheers, APC

Similar Messages

  • __ Is there a way to adjust the key commands for switching channels in curves?

    __ Is there a way to adjust the key commands for switching channels in curves?
    By that I mean <command> + 1 for cyan, <command> + 2 for magenta etc. like Photoshop CS3 rather than <option> + 3 for cyan etc.
    There's gotta be a way under Edit --> Keyboard Shortcuts - but I can't find it!
    Thanks,
    Hugh

    Hi,
    You can find the CS4 plug-in here:
    http://blogs.adobe.com/jnack/files/Use_Old_Shortcuts.zip
    It's inline in tis post with some more background info:
    http://blogs.adobe.com/jnack/2010/05/use_legacy_shortcuts_option_in_cs5.html
    regards,
    steve

  • TS4006 is there a way to undo the "Erase" command before the deletion starts?

    is there a way to undo the "Erase" command before the deletion starts while the phone is turned off.  In my case the erase is pending the phone being turned on.  Now that I have found the phone, I don't want the deletion to happen.  How can I undo the command before turning on the iPhone?

    There's no way to block the remote wipe.  But once it's been wiped, you can perform a restore from your backup on either icloud or itunes.

  • Is there a way to decrypt the SQL login-only encryption in the netmon trace or disable the SQL login-only encryption?

    We know by default the SQL Server use the self-signed certificate to encrypt the  SQL login information when  building the connection, my question is if
    there is a way to decrypt the SQL login-only encryption in the netmon trace  or disable the SQL login-only encryption?
    Please click the Mark as Answer button if a post solves your problem!

    Not without login as admin.   To avoid using credentials to login to SQL, use Windows Credentials instead.
    jdweng

  • Is there a way to disable the voice commands function?

    It pops up on my phone every time it is in the charger and I always accidentally hit it. I have the Voyager. Is there anything I can do about this?

    ijusthaveaquest wrote:
    It pops up on my phone every time it is in the charger and I always accidentally hit it. I have the Voyager. Is there anything I can do about this?
    No there is not. You can set it to tones only instead of read out.That might help somewhat.
    Settings
    Tools
    Voice Commands
    Settings
    Prompts
    Mode
    Tones Only

  • Any way to see the sql code used to update DataTableModel?

    Hi,
    I'm getting an sql syntax error when I do an update on a table model.
    Is there a way to see the SQL command that Creator is using to update the database?
    Thanks!
    Rick

    This is an easy one. In your code before you do the .execute put in the following line: String tempString = tableRowSet.getCommand(). Set a break point on the line after. Start the program in debug mode. When the program hits the break point look at the value of tempString. check your sql statment.

  • To automate the SQL scripts using PLSQL Code

    Hi All,
    I have 20 database server (11.2.0.3) hosted on  unix and Windows platforms.
    Every day I have to kill inactive sessions from all the these 20 database servers. So I have made a below script::
    connect sys/&&sys_password@&&tns_database_name as sysdba
    SPOOL E:\DELETE_INACTIVE_SESSIONS.SQL
    set PAGESIZE 1000
    set LIN 5000
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET HEADING OFF;
    select 'alter system kill session '||'`'||SID||','||SERIAL#||'`'||' immediate;'  from v$session where status='INACTIVE' and username in ('OSS_DICTIONARY','ADMINISTRATOR');
    SPOOL OFF;
    @@E:\DELETE_INACTIVE_SESSIONS.SQL
    Is there any way so that this execution of script can be automated in PLSQL code for 20 servers so and that code could be put in batch file for execution(i.e. can be execute through batch file from my windows laptop).
    Thanks

    Shrma wrote:
    Is there no way to handle the sql scripts in PLSQL code?
    Well, remember that PL/SQL is executed on a specific server by a certain user so you are already connected when executing a PL/SQL code.
    You could actually use a SQL Plus script to connect to different servers using connect and run your script.
    i.e.:
    SQL> connect sys/pwd_server1@db_server1
    SQL> @killinactive.sql
    SQL> connect sys/pwd_server2@db_server2
    SQL> @killinactive.sql
    But it does not make so much difference with my previous solution.
    Please explain exactly what you would like to do.
    Regards.
    Al

  • One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    Wow, have seen Files do that, but a whole Folder as I recall!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • Is there any way to activate the keep identity setting when using a Transfer SQL Server Object Task?

    Is there any way to add the "Keep Identity" option to the tables selected for transfer in a Transfer SQL Server Object Task?  It seems that would be very useful, yet I can't find an easily available setting for it.  I would prefer to
    accomplish this within the Transfer SQL Server Object Task since it can copy any new fields added to the source tables, as opposed to having to rebuild a custom Data Flow Task any time a table structure is altered.  I thought setting "CopyPrimaryKeys"
    to True would do the trick, but I found that only ensures that the column settings are transferred; when the transfer happens, the destination id column is populated based on the specified seed and increment value, not what's actually in the source table. 
    I'd like to point out that replication isn't really an option here. This is a package that runs a few times a day to keep some data on our website up to date with data in our protected corporate environment.

    IIRW there is FastLoadKeepIdentity specifies
    whether to keep an identity in OLEDB destination 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Is there any way to execute process chain from the portal?

    Hello,
    Is there any way to execute process chain from the portal? I dont want to link process chain with any of report. I want to have a button in some of portal folders. User presses the button and it executes the process chain.
    I was thinking about to create a fake planning cube, aggregation level and planning function. I call FM within the Fox planning function that runs the process chain. But it should be done within the report.
    Any ideas?
    Thanks a lot in advance!

    Hi.
    I want to have a button in some of portal folders
    You mean that you want to use some link in EP ?
    Regards.

  • Evaluation of SQL Server 2012 R2 expired is there any way to extended the evaluation time?

    Hello,
    My Evaluation of SQL Server 2012 R2 expired is there any way to extended the evaluation time?
    Please let me know,
    Thank You! and Happy New Year

    Hello,
    Try to roll back the time of the computer to a few days back until you are able to perform an edition upgrade.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Is there a way to control the number of concurrent SMTP connections on Database Mail?

    Las week Rackspace started controlling the number of concurrent SMTP connections and we are now getting the following message when we send as little as 15 messages at a time using Database Mail:
    Exception Message: Cannot send mails to mail server. (Service not available, closing transmission channel. The server response was: 4.7.0 smtp13.relay.dfw1a.emailsrvr.com Error: too many connections from IP xxx.xxx.xxx.xxx)
    We are using SQL Server 2005 and Windows 2003 and we have been doing this since 2006 with no problems
    Is there a way to control the number of concurrent SMTP connections used by Database Mail or the Database Mail external executable DatabaseMail90.exe?

    Hi rkohler,
    Usually, we can use the Database Mail Configuration Wizard or the Database Mail stored procedures to determine the server name and port number for the Simple Mail Transfer Protocol (SMTP) server . In the SMTP server points, we can set or increase the number
    of concurrent connections.
    There is similar issue about database email on SQL Server 2005, you can refer to the following post.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6bb7b600-f025-451b-898b-2caa29c10d4d/only-some-email-gets-sent-successfully-from-spsenddbmail-database-mail-on-sql-server-2005
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Executing the SQL statement is not allowed - Error

    I am getting "Executing the SQL statement is not allowed" for an INSERT cfquery that I'm running.  I checked the usual suspects:
    - DSN allows INSERT
    - I've seen reports online where certain field names or values are considered key words, so for protection CF blocks the query in this way (it would be nice if there was a different error message when it gets blocked this way vs. the DSN doesn't allow INSERT error message).  The field names and values were all benign strings, so it didn't seem like that.
    I took the same string for the query and ran it on another page and it ran fine (same DSN, too).

    SOLVED: I decided to enter this in here, just to get it into web searches for others since I couldn't find anything.
    - I was calling a function for one of the values in the query:  get_db_status_code("initialize")  Apparently CF parses the query to see if it's allowed BEFORE it runs the CFML in it, so something in that function name, or the parameter "initialize" was a key word that CF doesn't allow.  I moved the function call outside of the query and loaded a temp variable for use in the query and it then worked.

  • Is there a way of changing the jdevappunknown_ folder that Ant deploys to?

    Using Ant DeployESBSuitcase doesn't work when deploying Projects with dependencies.
    Steps to re-create error:
    Create a JDeveloper ESB Project called ‘ProjectB’ and add file adapter called ‘WriteFile’ to write a file. Deploy this project using JDeveloper.
    Create another JDeveloper ESB Project called ‘ProjectA’ and add a file adapter called ‘ReadFile’ to read a file.
    From ProjectA’s routing service add a routing rule and use ‘Browse Target Service Operation’ (Gear wheel icon) and select the deployed ProjectB_WriteFile service.
    Deploy ProjectA using JDeveloper.
    Use Ant to create a deploymentplan file for both projects by running the ExtractESBDeploymentPlan target.
    Note: As these projects are saved under their own directory structure
    C:\Workspace\Local\ProjectA and C:\Workspace\Local\ProjectB you will need to copy the ..\ProjectB\ProjectB_WriteFile.wsdl to the ProjectA folder.
    Confirm that ProjectA and ProjectB Ant build files DeployESBSuitcase properties (esbMetadataServerHost and esbMetaServerPort) point to another server other than the one you have just deployed ProjectA and ProjectB to using JDeveloper. i.e. a clean server that doesn’t know about these Projects
    Deploy ProjectB using Ant’s DeployESBSuitcase target.
    Deploy ProjectA using Ant’s DeployESBSuitcase target.
    An error is now thrown
    C:\Workspace\Local\ProjectA>ant DeployESBSuitcase
    Buildfile: build.xml
    DeployESBSuitcase:
    [echo] Deploying ESB Project ProjectA to serverx
    [deployESBSuitcase] Deployment Attempt Response :
    [deployESBSuitcase] <deploymentSummary>
    [deployESBSuitcase] <message>Entity Deployment Failed</message>
    [deployESBSuitcase] <errors>
    [deployESBSuitcase] <error code="1049" severity="5">
    [deployESBSuitcase] <description>WSDL "esb:///ESB_Projects/Local_ProjectB/ProjectB_WriteFile.wsdl" of service "DefaultSystem.ProjectB_WriteFile" is invalid or unaccessible. Following error is thrown by WSDL Parser : WSDL Parsing Failed: org.apache.slide.structure.ObjectNotFoundException: No object found at /files/ESB_Projects/Local_ProjectB</description>
    [deployESBSuitcase] <fix>Ensure that the WSDL is accessible and valid. If the problem persists, Contact Oracle Support.</fix>
    [deployESBSuitcase] </error>
    [deployESBSuitcase] </errors>
    [deployESBSuitcase] </deploymentSummary>
    [deployESBSuitcase]
    [deployESBSuitcase] Deployment Failed ...Unhandled Exception
    [deployESBSuitcase] java.lang.Exception: Deployment attempt failed, please review deployment attempt response above
    [deployESBSuitcase] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:128)
    [deployESBSuitcase] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:175)
    [deployESBSuitcase] at oracle.tip.esb.client.anttasks.DeployESBSuitcaseTask.execute(DeployESBSuitcaseTask.java:510)
    [deployESBSuitcase] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [deployESBSuitcase] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [deployESBSuitcase] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [deployESBSuitcase] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [deployESBSuitcase] at java.lang.reflect.Method.invoke(Method.java:585)
    [deployESBSuitcase] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [deployESBSuitcase] at org.apache.tools.ant.Task.perform(Task.java:348)
    [deployESBSuitcase] at org.apache.tools.ant.Target.execute(Target.java:357)
    [deployESBSuitcase] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [deployESBSuitcase] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [deployESBSuitcase] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [deployESBSuitcase] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [deployESBSuitcase] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [deployESBSuitcase] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [deployESBSuitcase] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [deployESBSuitcase] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [deployESBSuitcase] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    BUILD FAILED
    java.lang.Exception: Deployment attempt failed, please review deployment attempt response above
    at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:128)
    at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:175)
    at oracle.tip.esb.client.anttasks.DeployESBSuitcaseTask.execute(DeployESBSuitcaseTask.java:510)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    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.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Total time: 2 seconds
    C:\Workspace\Local\ProjectA>
    This error is thrown as ProjectB’s wsdl file cannot be found under esb:///ESB_Projects/Local_ProjectB/ProjectB_WriteFile.wsdl.
    This is due to Ant deploying ProjectB under …\ESB_Projects\jdevappunknown_ rather than …\ESB_Projects\Local_ProjectB
    When deploying ESB projects from JDeveloper they are created under the following structure: <Oracle_Home>\integration\esb\oraesb\artifacts\store\metadata\files\ESB_Projects\<JDev_Workspace>\<Project_Name>
    However when using the Ant target DeployESBSuitcase ALL projects are deployed to the same folder:
    <Oracle_Home>\integration\esb\oraesb\artifacts\store\metadata\files\ESB_Projects\jdevappunknown_
    Is there a way of changing the jdevappunknown folder used by Ant deployments?
    Edited by: user2000 on Apr 27, 2009 3:37 PM

    James,
    Following my steps above I don't get anything in the deploymentPlan for either ProjectA or ProjectB which includes a WSDL URL I can modify.
    ProjectA includes the ProjectB_WrieFile.esbsv file which contains the following line:
    <wsdlURL>esb:///ESB_Projects/Local_ProjectB/ProjectB_Write.wsdl</wsdlURL>
    Is there something I can change which will mean when I regenerate the deploymentPlan it will include the WSDL location?
    Thanks
    Alistair
    Edited by: user2000 on Apr 28, 2009 11:55 AM
    I've included Both Deployment Plans:
    ProjectA Deployment Plan
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <deploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectA_ReadFile" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <jcaOperation>
    <property value="Read" name="LogicalDirectory"/>
    <property value="oracle.tip.adapter.file.inbound.FileActivationSpec" name="ActivationSpec"/>
    <property value="Archive" name="LogicalArchiveDirectory"/>
    <property value="true" name="DeleteFile"/>
    <property value=".*\.txt" name="IncludeFiles"/>
    <property value="60" name="PollingFrequency"/>
    <property value="0" name="MinimumAge"/>
    <property value="true" name="OpaqueSchema"/>
    </jcaOperation>
    <jcaAddress>
    <property value="eis/FileAdapter" name="location"/>
    <property value="*.txt" name="UIincludeWildcard"/>
    </jcaAddress>
    </properties>
    </serviceDeploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectA_ReadFile_RS" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <serviceDefinition>
    <property value="ProjectA_ReadFile.wsdl" name="wsdlURL"/>
    </serviceDefinition>
    </properties>
    </serviceDeploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectB_WriteFile" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <jcaOperation>
    <property value="Write" name="LogicalDirectory"/>
    <property value="oracle.tip.adapter.file.outbound.FileInteractionSpec" name="InteractionSpec"/>
    <property value="ProjectB_%SEQ%.txt" name="FileNamingConvention"/>
    <property value="1" name="NumberMessages"/>
    <property value="true" name="OpaqueSchema"/>
    </jcaOperation>
    <jcaAddress>
    <property value="eis/FileAdapter" name="location"/>
    </jcaAddress>
    </properties>
    </serviceDeploymentPlan>
    </deploymentPlan>
    Project B Deployment Plan
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <deploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectB_WriteFile" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <jcaOperation>
    <property value="Write" name="LogicalDirectory"/>
    <property value="oracle.tip.adapter.file.outbound.FileInteractionSpec" name="InteractionSpec"/>
    <property value="ProjectB_%SEQ%.txt" name="FileNamingConvention"/>
    <property value="1" name="NumberMessages"/>
    <property value="true" name="OpaqueSchema"/>
    </jcaOperation>
    <jcaAddress>
    <property value="eis/FileAdapter" name="location"/>
    </jcaAddress>
    </properties>
    </serviceDeploymentPlan>
    </deploymentPlan>

Maybe you are looking for

  • Which license type do we need to buy, standard or professional?

    We have been helping a customer to develop a web based system built around Flash media server. For our work we have used the developer edition. Things are going well and now our customer is now looking to go live and so wants to purchase a full media

  • MX 2004: CSS Layout Outlines

    Hi, Doeas anybody know how to get the above in MX 2004? Macromedia introduced some additional visual aids, including the above, in DW8 [or Studio...] I find these outlines particularly useful and I would like to find a way to have MX 2004 to display

  • Changing Weblogic Server properties without restarting Weblogic Server

    I have an application that requires a few things to be set at the start of the Weblogic server (email addresses,criteria settings, etc.). These are contained in a properties file that is referenced in the Weblogic properties file. The problem is when

  • Vendor with a WITHHOLDING tax

    Hi, Can you guys tell me how to find a vendor who has a WITHHOLDING tax in table level or any other way. regards, Prabhu

  • Connecting a servlet in tomcat with a database

    Hello i have this problem, i have an aplication that connects to a database, but when a servlet in tomcat use it, i get the problem that the connection is null and you can't connect to it. Anyone know something about this? i have to change any parame