Help in the creation of the schema Script in order to short-circuit
Dear SirAs I have two similar patterns (with the same objects) and I need to create scripts for the two schemas for objects like (procedures, packages, functions, views, triggers) of these two diagrams (what I'm doing with the help of Toad (DBA > > generate the schema Script), now my problem is that the sequence of object in the scripts are different in the two scripts) , so is there a way I can get fixed a short sequence (probably in alphabetical order) .then my complementary process can be simplified
Thanks and greetings
Ashish Mishra
If you don't want a specific product solutions, do not post in a specific forum of the product.
I suggest that ask you in the forum SQL and PL/SQL.
Tags: Database
Similar Questions
-
Please help improve the JavaScript script
Please help improve the JavaScript script
Hello
to increase or decrease the height of a subform, you use the following syntax in the click of + and - button
cmdAdd::JavaScript
_Row1.addInstance (1);
var b is parseFloat (Subform3.h) - 6.5;.
If (b<>
b = 0;
}
Subform3.h = b + "mm";
cmdRemove::JavaScript
If (_Row1.count > 1) {}
var b is parseFloat (Subform3.h) + 6.5.;
Subform3.h = b + "mm";
_Row1.removeInstance (this.parent.index);
}
This should do the trick, I hope this will help you
-
Help with the Powershell script to collect logs from all domain controllers
I am writing a script to retrieve the last 5 days of application, security and log files from all domain controllers. The script runs, but fire the logs from the local server only. The variable $Computer has all of my DC so it's the fine mark. I guess it's a problem with my line ForEach-Object, but is not error. See the below script.
$log = 'application '.
$date = get-date-format MM-DD-YYYY
$now = get-date
$subtractDays = new-object System.TimeSpan 5,0,0,0,0
$then = $Now.Subtract ($subtractDays)
$Computers = get-ADDomainController-filter *.
ForEach-Object - InputObject $Computers - process {Get-EventLog - LogName $log - after $then - before $now - EntryType error | select EventID, MachineName, Message, Source, TimeGenerated |} ConvertTo-html | {Out-file $env:TEMP\Applicationlog.htm}
Invoke-Expression $env:TEMP\Applicationlog.htmThank you
Rich
Hello
To help with the repost the question script to the script Center Forum
http://social.technet.Microsoft.com/forums/scriptcenter/en-us/home
-
Hello
I have some related issues oppose executing this script to list physical NETWORK card speeds by NIC for each host. The error is:
The method call failed because http://System.Management.Automation.PSObject contains not one me
Taylor named "op_Addition.
Online: 12 char: 23
+ += $NicSpReportObj < < < < $NicSpReportObj
+ CategoryInfo: InvalidOperation: (op_Addition:String)], RuntimeException
+ FullyQualifiedErrorId: MethodNotFound
Hostname Teddy speed
esx14.domain.com pnic0 1000
It will list until I would be the last entry in the object but of course its not adding in the previous info (or deleting it may be).
If someone could take a look it would be great.
Thank you
Dan
Script (also attached):
$VMHosts = get-VMHost | Sort name | Get-View
$NicSpReport = @)
$NicSpReportObj = "" | Select-Object HostName, Teddy bear, speed
Foreach ($VMHost to $VMHosts)
{
$pnic = 0
{}
$Speed = $VMHost.Config.Network.Pnic [$pnic]. LinkSpeed.SpeedMb
$NicSpReportObj.HostName = $VMHost.Name
$NicSpReportObj.pNIC = ' teddy bear$ Teddy. "
$NicSpReportObj.Speed = $speed
$NicSpReportObj += $NicSpReportObj
{$pnic ++}
Until the ($pnic - eq ($VMHost.Config.Network.Pnic.Length))
}
$NicSpReport += $NicSpReportObj
$NicSpReport | FT - AutoSize
I have a little rewriting of your script. I hope it will do what you want now:
Get-VMHost | ForEach-Object { $VMHost = $_ $VMHost.Extensiondata.Config.Network.Pnic | ForEach-Object { $NicSpReportObj = "" | Select-Object HostName, pNIC, Speed $NicSpReportObj.HostName = $VMHost.Name $NicSpReportObj.pNIC = $_.Device $NicSpReportObj.Speed = $_.LinkSpeed.SpeedMb $NicSpReportObj } } | Sort-Object -property HostName,pNIC | Format-Table -AutoSize
Best regards, Robert
Update: moved the Sort-Object cmdlet at the end of the script to also perform a sort on the attribute of Teddy.
Post edited by: RvdNieuwendijk
-
help strengthen the existing script maps
So I tried initially comes to loop through all the files but could not understand so I made sure that I could pass the file as a parameter, but ideally, I want it to all virtual machines without having to enter all the settings. Any ideas on the best way to do this? I want to the csv files for each folder with all the attributes that are customized for each virtual machine contained in.
##Variables
Param ($param1)
$report = @)
$folders = get-file $Param1 # | name sort
############################################################################################
###########################
ForEach ($folder in $folders)
{
$vms = get-vm-location $folder
ForEach ($vm to $vms)
{
$ReportObj = "" | Select "File", "Virtual Machine", "POC", "Username", "Password",
$ReportObj. "" Folder "= $folder.name
$ReportObj. "' Virtual Machine ' = $vm.name
$ReportObj. "' POC ' = $vm. CustomFields
$ReportObj. "' Username ' = $vm. CustomFields
$ReportObj. "' Password ' = $vm. CustomFields
$Report += $ReportObj
$csvfile = "D:\". "$folder".csv ".
$report | Export-CSV $csvfile - NoTypeInformation
}
}
The Get-FolderPath filter returns anything you put in the $row.
Then if you add additional properties, they will be in the CSV files.
For example, the following version adds the Notes property and all of the custom attributes
filter Get-FolderPath { $vmImpl = $_ $_ | Get-View | % { $row = "" | select Name, Path, Notes $row.Name = $_.Name $current = Get-View $_.Parent $path = "" do { $parent = $current if($parent.Name -ne "vm"){$path = $parent.Name + "\" + $path} $current = Get-View $current.Parent } while ($current.Parent -ne $null) $row.Path = $path $row.Notes = $vmImpl.Description $vmImpl.CustomFields.GetEnumerator() | %{ $row | Add-Member -Name $_.Key -Value $_.Value -MemberType NoteProperty } $row } } Get-VM | Get-FolderPath | Group-Object -Property Path | %{$_.Group | Export-Csv ("C:\" + ($_.Name.TrimEnd("\")).Replace("\","-") + ".csv")}
This version also solves the problem with the file name of the CSV files which was leaking.
-
Help with the scripts of "event handler".
Ok. I am new to using event handler and the Listener Script for I have not every little thing down yet.
What I'm trying to do is set up an event handler to activate a script when I select a layer. As I have now, the active script no matter what I choose and I'm unable to limit it to only activate when I select a layer. The ScriptListener output was:
var idslct = charIDToTypeID ("TPCV");
var desc10 = new ActionDescriptor();
var idnull = charIDToTypeID ("null");
ref19 var = new ActionReference();
var idLyr = charIDToTypeID ("Lyr");
ref19.putName (idLyr, 'Face');
desc10.putReference (idnull, ref19);
var idMkVs = charIDToTypeID ("MKV");
desc10.putBoolean (idMkVs, false);
executeAction (idslct, desc10, DialogModes.NO);I used TPCV under the name of the event during the creation of the new event in the event handler. However, this same ID is used when a tool is selected. This isn't a huge problem, but for the fact that my reason for setting this up is so that when I select a layer, first I want to implement a predefined specific tool to use on it. If I can change the tools (select another tool) and have always the same layer selected in the script automatically selects the initial tool to the layer which is always selected this layer is always the active layer.
Example: Suppose I have the following layers...
Texture
Heal
Tones
Eyes
Lips
Face
These are not my normal layers, but for example when I select the layer "Cure" I would like to start with the Healing Brush tool. However, sometimes I want to use clone on this layer as well. Using the event at this time, Heal would still be the active layer when I make the choice to the clone tool so the script would then return the selected tool, Healing Brush tool.
So, is it possible to limit the selection event ID to activate only when a layer is selected? I noticed that the line above in bold/red is the event ID of layer. I don't know how to do this in the event handler or the script.
Thanks for any help.
Mike
Here ya go...
// // SelectLayerHandler.jsx // function _selectLayerHandler(desc) { // do whatever when a layer is selected var doc = app.activeDocument; var layer = doc.activeLayer; alert("Layer " + layer.name + " selected"); }; cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; try { if (arguments.length >= 2) { var desc = arguments[0]; var event = arguments[1]; if (event == cTID('slct')) { var ref = desc.getReference(cTID('null')); var cls = ref.getDesiredClass(); if (cls == cTID('Lyr ')) { _selectLayerHandler(desc); } } } } catch (e) { alert( "Error: " + e + ":" + e.line ); } "SelectLayerHandler.jsx"; // EOF
-
I have a problem, try to uninstall the ask toolbar. get the error message: unable to access the VB script... need help
Hello
How do you try to uninstall the toolbar?
I would suggest trying the following methods and check if it helps.
Method 1:
Try the steps in the following Microsoft article and check if it helps.
How to fix script errors in Internet Explorer on Windows computers:
http://support.Microsoft.com/kb/308260
Correction of errors in Internet Explorer: http://support.microsoft.com/kb/822521
Method 2:
Try to uninstall the toolbar, programs and features and check if it helps.
Uninstall or change a program:
http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program
Hope the information is useful.
-
I need help on the matrix of action script 3.0
I need help on the matrix of action script 3.0
[Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]
to apply a matrix for mc mat oppose:
var mat: Matrix = new Matrix;
mat.a = Whatever;
mat.b =
mat.c =
mat.d =
mast. TX =
mat.Ty =
MC. Transform.Matrix = Matt;
-
Help change the lightness of the foreColor script
Hello
I would like some help with the scripts here: I am currently using this script that I found in the forums to change the brightness of the current foreground color
*****************
#target photoshop
var foreColor = new SolidColor;
foreColorH = app.foregroundColor.hsb.hue; Initial value
foreColorS = app.foregroundColor.hsb.saturation;
foreColorB = app.foregroundColor.hsb.brightness;
foreColor.hsb.hue is foreColorH + 0.;
If (foreColorB + 10 > 100) {foreColor.hsb.brightness = 100}
else {foreColor.hsb.brightness = foreColorB + 10 ;}
foreColor.hsb.saturation is foreColorB + 0.;
app.foregroundColor = foreColor;
*********************
Modify this script to brightness-10 only the result below (red arrows), but what I really need, is to change the lightness down if the color picker is going down, as the blue goes to the top.
Thanks much for any help.
This line is incorrect. It is assign the value of brightness saturation:
foreColor.hsb.saturation=foreColorB+0;
It should be:
foreColor.hsb.saturation=foreColorS+0;
-
Assist in the creation of HTML report of the PowerShell script
Hello
I'm looking for help taking a script work and have it create an HTML report.
I found a script that LucD post by helping another poster to gather cluster information that I've tweaked to collect information that I'm looking for. The script works and will collect the information necessary for all 3 of our vCenter servers but I'm trying to get this information in a HTML report similar to what Alan was with vCheck5.
Below is the output of the script and have attached the script, etat_hebdomadaire - VMwareClusterResourceSummary.ps1 and an example of what I'm trying to archive, weekly report - VMware Cluster Resource Summary.htm.
Thanks for any help you can provide.
vCenter Server Name: vCenter1
Name of the data center: Data Center Office 1
Name of the cluster: Office Group 1
Number of guests: 8
Number of data warehouses: 19
Number of Virtual Machines: 625
Total of processor (Ghz): 314.98
Consumed current processor (Ghz): 143.69
Courses available processor (Ghz): 171.29
Minimum 7 days CPU usage (%): 13.90
7 days of use of the processor maximum (%): 53.09
7 days of CPU usage (%) average: 28.80
Total memory (GB): 1023.97
Current consumption memory (GB): 782.86
Current available memory (GB): 241.12
Minimum 7 days memory usage (%): 59.43
Day 7 use of the maximum memory (%): 75,41
7 days average memory usage (%): 66.38
Total space (GB): 14395.25
Current space (GB): 9948.26
Current available space (GB): 4446.99Hello Arnold, creating such a report will involve a lot of HTML and CSS coding, which is not my strong btw
The best example is of course script vCheck to Alan.
In the attached script I borrowed / stole the code HTML and CSS of the script from Alan.
The result is far from what you are considering, but I hope that it will give you at least a framework for more customization.
-
Help change the script to a report
I tried, but have been unable to make this script in a report. Here's the script I would like to make a report:
{foreach ($VMHost in Get-VMHost)
$esx = get-view-Id $VMHost.id
{foreach ($vSwitch to $esx.Config.Network.Vswitch)}
Write-Host $vSwitch.Name
Write-Host "' tmac changes:" $vSwitch.Spec.Policy.Security.macChanges
Write-Host "' tForged passes:" $vSwitch.Spec.Policy.Security.ForgedTransmits
}
}I would also add the esx host name in the output. I would like the output to this format if possible:
esxservername, mac, wrought changes passes
I was looking at this script as sort of a model, but when I went to replace parts of the script it just did not work properly. This script is the VM information, but I'm looking for the script above be put in this type of report format. Or am I wrong in that the script above is only good for just posting out on-screen during the launch in powerCLI?
$report = foreach ($vm in (Get - VM | where {$_.})) PowerState - eq 'Receiving'})) {}
Get-NetworkAdapter - VM $vm | `
Select @{N = "VMname"; E = {$vm. Name}},
@{N = "MAC address"; E={$_. MacAddress}}
}$report | Export-Csv «.\output.csv"- NoTypeInformation - UseCulture
Thanks in advance for any help.
Hi Mark,
The following script will give you the report of your choice:
Get-View -ViewType HostSystem | ForEach-Object { $VMHostView =$_ $VMHostView.Config.Network.vSwitch | ForEach-Object { $Report = "" | Select-Object -Property VMHost,vSwitch,"MAC Changes","Forged Transmits" $Report.VMHost = $VMHostView.Name $Report.vSwitch = $_.Name $Report."MAC Changes" = $_.Spec.Policy.Security.macChanges $Report."Forged Transmits" = $_.Spec.Policy.Security.ForgedTransmits $Report } }
Best regards, Robert
-
help to the development of a script of locking
I have this script that sets all the fields to read only when I submit. What I have to change on this script so that it re - activate all fields again?
I thought changing the "readOnly" to "activate", but it did not work
Download area of each page containers.
for
()var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) { }
var
oFields = xfa.layout.pageContent (nPageCount, "field");
var
nNodesLength = oFields.length;
Set the field property.
for
()var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) { }
oFields.item (nNodeCount) .access
= "readOnly";
}
}
Hello
If you look in help for the LC Designer, you will see that the .access property has a number of possible values. You are looking for is "open".
Hope that helps,
Niall
-
Get the error during the creation of the type of the Schema element variable
Hello world
To create a variable of type of schema, I do the following steps...
Select 'Variables' after right-clicking on the bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type choose, I expanded the my imported schema files. And selected a type of item, and then click ok to create this variable. I get the message...
TO SAVE ANY WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED IN THE DIRECTORY OF THE CURRENT PROJECT.
Which is to say by whom.
I imported the schema files in the project. After that I imported in the WSDL file also. Now why I am getting error during the creation of the variable. However, I can create variable directly in. BPEL file, then everything is fine. And it works too. But what is average with the error above? Why I am not able to create the variable via GUI?
Thank you.Hello
I have this same problem this morning, and I was going crazy, until I found this Web page on the internet:
[http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process | http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]
The idea is that the jdeveloper is not very good with directories with spaces to work on the directory name. If you move all your work in a directory without spaces, it will work smoothly. At least, it worked for me.
Kind regards
Nacho
-
Help on the DML triggers on schema
All,
We are implementing for the specific patterns of audit table:(user1 120 tables)
I was able to successfully create on the schema DDL triggers with - on SCHEMA DDL
but for the follow-up of DML operations on each table by different users user1 schema... do I have to create an individual trigger for each table...
Before INSERT OR update OR DELETE ON < table_name >
is this the only way...
Any ideas?
Kind regards
~ OraHello
as you said in your first post, for DDL operations, you can use a trigger level of SCHEME, but for DLM operations, you will have to stick to a single trigger per Table.
Here is a piece of code to generate the triggers for you.
drop type line_tt; create or replace type line_t as object (x varchar2(4000)); / create or replace type line_tt as table of line_t; / create or replace function generate_audit_triggers return line_tt pipelined is cursor my_tables is select user as owner, table_name from user_tables where temporary = 'N'; cursor my_table_cols(tablename in varchar2) is select column_name from user_tab_columns where table_name = tablename order by column_name; sqlstatement varchar2(4000); wherestatement varchar2(4000); begin for r_table in my_tables loop -- generate code for insert trigger pipe row(line_t('create or replace trigger ' || r_table.owner || '.' || substr('SPYI_' || r_table.table_name, 1, 30))); pipe row(line_t('before insert on ' || r_table.owner || '.' || r_table.table_name)); pipe row(line_t('for each row')); pipe row(line_t('begin')); pipe row(line_t('insert into AUDIT_DATA(sqlstatement) values(')); sqlstatement := '''insert into ' || r_table.owner || '.' || r_table.table_name || '('; for r_column in my_table_cols(r_table.table_name) loop sqlstatement := sqlstatement || r_column.column_name; sqlstatement := sqlstatement || ','; end loop; sqlstatement := substr(sqlstatement, 1, length(sqlstatement) - 1); sqlstatement := sqlstatement || ') values ('''''' || '; for r_column in my_table_cols(r_table.table_name) loop sqlstatement := sqlstatement || ':new.' || r_column.column_name; sqlstatement := sqlstatement || ' || '''''','''''' || '; end loop; sqlstatement := substr(sqlstatement, 1, length(sqlstatement) - 10); sqlstatement := sqlstatement || ''''');'''; pipe row(line_t(sqlstatement)); pipe row(line_t(');')); pipe row(line_t('end;')); pipe row(line_t('/')); -- generate code for update trigger pipe row(line_t('create or replace trigger ' || r_table.owner || '.' || substr('SPYU_' || r_table.table_name, 1, 30))); pipe row(line_t('before update on ' || r_table.owner || '.' || r_table.table_name)); pipe row(line_t('for each row')); pipe row(line_t('begin')); sqlstatement := 'if ('; for r_column in my_table_cols(r_table.table_name) loop sqlstatement := sqlstatement || '''a''|| ' || ':old.' || r_column.column_name || ' <> ''a''|| :new.' || r_column.column_name || ' or '; end loop; sqlstatement := substr(sqlstatement, 1, length(sqlstatement) - 4); sqlstatement := sqlstatement || ') then'; pipe row(line_t(sqlstatement)); pipe row(line_t('insert into AUDIT_DATA(sqlstatement) values(')); sqlstatement := '''update ' || r_table.owner || '.' || r_table.table_name || ' set '; wherestatement := ' where '; for r_column in my_table_cols(r_table.table_name) loop sqlstatement := sqlstatement || r_column.column_name || '=''''' || ''' || :new.' || r_column.column_name || ' || '''''','; wherestatement := wherestatement || '''''a''''||' || r_column.column_name || '=''''a''''||''''' || ''' || :old.' || r_column.column_name || ' || '''''' and '; end loop; sqlstatement := substr(sqlstatement, 1, length(sqlstatement) - 1); wherestatement := substr(wherestatement, 1, length(wherestatement) - 5); sqlstatement := sqlstatement || wherestatement || ';'''; pipe row(line_t(sqlstatement)); pipe row(line_t(');')); pipe row(line_t('end if;')); pipe row(line_t('end;')); pipe row(line_t('/')); end loop; end; / show err drop table audit_data; create table audit_data ( sqlstatement varchar2(4000) ); spool tmp.sql set head off set linesize 500 set echo off select x from table(generate_audit_triggers); spool off
Hope this helps,
François -
With the help of the TYPE operator % on objects in another schema
Suppose I have the following architecture:
* A schema called APP_SCHEMA (for example), which contains all applications level PL/SQL packages that contain a business application logic
* A data schema, called DATA_SCHEMA (for example), that contains the schema objects that are referenced by the PL/SQL in APP_SCHEMA
Suppose I create a simple procedure like this in the APP_SCHEMA:CREATE OR REPLACE PROCEDURE test_proc(pVar IN DATA_SCHEMA.TABLENAME.TABLECOLUMN%TYPE) AS BEGIN DBMS_OUTPUT.PUT_LINE(pVar); END; /{code} For this simplified procedure I get the following error: {code:java}1/25 PLS-00201: identifier 'DATA_SCHEMA.TABLENAME' must be declared{code}So, my basic question is how do I use the %TYPE operator to reference objects in another schema? Other Pertinent info: * Windows Server 2003 * Oracle Database 10gR2 (10.2.0.3) Thanks!
Its almost certainly a problem of privileges.
I can create a test procedure based on the same script that compiles successfully.
Verify that your user can access the table. Might need to have to grant access directly, rather than in a role.
Published by: Keith Jamieson on August 25, 2008 17:51
typo fixed
Maybe you are looking for
-
How can I find the stickers for Imessage in 10 IOS?
-
How to use a Mac to download firefox.exe Flash drive to install Win XP SP3 box?
Recommended to install Firefox on a new Acer Aspire 1 (ZG8) with Win XP 2002 SP3 without configuring MS Explorer. I want to do by downloading Firefox on a USB key, then transfer it to Acer and settle there. But my other computer is a Mac Book Pro (OS
-
ChrisJ4203 apologies, don't think.
-
Open a session on Windows does not work.
I have an old computer in the company of my old job that I wanted to use since I was allowed to keep the computer. The computer is configured with the domain s network under the name of the company. I was stupid enough to try to change it so it did n
-
Prerecorded wav files for greeting call handlers
How to set up the unity server to use prerecorded wav (or some other format) file for managers to call greeting? Unfortunately, we only have these options - vacuum and recording system. Thank you Sergey