Generate the Script to create project gets no version of the server
We use the SQL Developer for most of our database and ODT for Visual Studio source code control. We recently encountered a problem where our scripts were not up-to-date with the server version and almost lost a significant amount of work (but we do not have through flashbacks). If a package is changed on the server outside my instance of Visual Studio, "Generate create Script to project" is not the latest version of the server and seems rather to get a version cached of the package according to when he finally examined by the Server Explorer.Steps to reproduce:
Create a specification package and body on the server.
Open an Oracle database project.
Open connection to the DB/schema.
Expand the packages node.
Select a package node in Server Explorer and "Generate create Script to project" from the context menu. You generate a script spec and body.
Change the package using a tool external (SQL Developer).
Select the same package in Server Explorer and "generate create Script to project.
The script does not update with the changes made on the server.
A couple of notes:
If I disconnect and reconnect, it will refresh and I get the version of SQL Server. The body will be updated.
If I refresh the connection node and to script the package body will be updated.
If I refresh the packages node and generate the script package body will not be updated.
If I refresh the parent node package and script the package body will not be updated.
If I expand the body for the first time and generate a script from the node parent package the package body will be updated.
If the package body has been expanded and I update a parent node and script the package body will be updated.
At the very least, I would expect refreshing a node parent to refresh all the brothers and sisters.
If caching is by design, it would be good to know if the package had changed since the cached version. If not, he should get the server version.
Oracle Developer Tools for Visual Studio 11.1.0.7.20
Thank you. I reported this as a bug
Tags: Database
Similar Questions
-
Hello
I wonder if on 10g R2 (already installed on a Win 2003 Server) is there any utility to generate a script to CREATE the DATABASE? I just need to generate this script.
Thank you.Hello
What is the need to generate the script, as you can create the DB Custom, writing the insteadf of scripts to go for the tool to help you. Anyway DBCA is where it will generate scripts for you. Try to configure the Options according to your needs and Altast on the last page for creating model instead of the DB.
This generates the scripts for you, and check the ORACLE_HOME, assistants, dbca, templates path-Pavan Kumar N
-
I use the Script multicolumn inside my project model.
Currently a report can only be generated from script to Film or television.
-
Can any body help to get a script that can generate the sequence (length 3) with a combination of numbers and characters example: T11... TA1... TZ9... then on
With the help of the clause type
Select sqnc
from (select sqnc
from (select 'T00"sqnc, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' ordr
of the double
)
model
size of (0 I)
measures (sqnc, ordr, length (ordr) len)
rules iterate (1300) until (instr(sqnc[iteration_number],'~')! = 0)
(sqnc [iteration_number] = case when sqnc [cv (i) - 1] is null
then sqnc [0]
of another substr (sqnc [iteration_number - 1], 1, 1) |
-case when substr (sqnc [iteration_number - 1], 2, 1)<=>=>
so when business substr (sqnc [iteration_number - 1], 3, 1)<>
then substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 2, 1)), 1)
of another nvl (substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 2, 1)) + 1.1),'~ ')
end
end |
-case when substr (sqnc [iteration_number - 1], 3, 1)<>
then substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 3, 1)) + 1.1)
else ' 0'
end
end
)
)
where instr(sqnc,'~') = 0
Concerning
Etbin
-
Data Modeler: generate the Delta Scripts against an existing schema
Can I generate the DDL Scripts with 'ALTER TABLE' - statements?
For example: relational model and the database are synchronized. That means: each Table of the db is stored in the data model of the Data Modeler.
Now I need new columns in a table. I have set these columns in the data model and now I need a script with:
ALTER TABLE my_table ADD (new_column DATE);
In the Oracle Designer, it is easier to create such delta-scripts. But I can't find anything similar in the Data Modeler
Thanks in advance
GerdHi Gerd,
We called the "Swap target model" at the last page of the wizard 'import data dictionary' check box. If you select your database will target the model and you can get ALTER statements in the DDL of the Merge dialog preview. It's the same thing with the DDL script.
Philippe
-
Generate the DDL to create the table in the database
Hi all
I want to create the new fact and Stadium as being under the statement:
(1) in the designer, access the models > Oracle BI Applications (folder) > (model) Oracle BI Applications > done (sub-model) step, right click on the WC_SAMPLE_FS data store and select duplicate the selection.
2) double-click the new data store, and then rename it. Name and resource name must match the name of the actual table. Alias can be the same or greater value easy to use.
(3) in the sub-tab of the columns, add all columns.
(4) repeat the same steps to create the fact Table by copying the data store WC_SAMPLE_F under the submodel of "facts".
(5) for the fact table, define the type of OLAP to "fact Table.
(6) generate the DDL to create the table in the database.
In step 6, I don't know where and how to generate the DDL to create the database table. Please help me. If you have another tutorial with screenshot, please share with me. Thank you.
Kind regards
Cong
Hi Cong,
Please see section 6.3 DDL generation of scripts in this link:
Working with the Designer of the common Format - 11g Release 1 (11.1.1)
I hope this helps.
Thank you!
Saran.
-
Master Pages are part of each document.
You can import master pages from another document (i.e. a ' model') in your current document using the file > import > Formats... option and select layout from the list (deselect all others).
If you have changed the current TOC for the problem of the Page Master on the left, then simply save the file and use the Edit > update book option for that OCD regenerated by using the new page templates.
-
Hi all
If someone can help me with a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter, create a role called admin and give all access except the root. This shoulb be past by a virtual centre.
Very much appreciated to help him.
Kind regards
MelLvin
I suspect that you posted your question to the wrong thread
This requires only a minor change to the script above actually.
Something like that
$groupName = "group"$accountName = "user"$accountPswd = "password"$accountDescription = "A user" $esxlist = Get-VMHostforeach($esx in $esxlist){ Connect-VIServer -Server $esx -User root -Password "password" Try { Get-VMHostAccount -Id $groupName -Group -ErrorAction Stop | Out-Null } Catch { New-VMHostAccount -Id $groupName -GroupAccount | Out-Null } $rootFolder = Get-Folder -Name ha-folder-root Try{ $account = Get-VMHostAccount -Id $accountName -ErrorAction Stop | Set-VMHostAccount -Password $accountPswd -Description $accountDescription -AssignGroups $groupName } Catch{ $account = New-VMHostAccount -Id $accountName -Password $accountPswd -Description $accountDescription -UserAccount -GrantShellAccess -AssignGroups $groupName } $rootFolder = Get-Folder -Name ha-folder-root New-VIPermission -Entity $rootFolder -Principal $account -Role admin Disconnect-VIServer -Confirm:$false}
-
PowerCLI script delete/create the snapshot in ESXi5.5
Hello
Last week, I upgraded one of my host of esxi5.1 to 5.5
everythink works exepted one of my script powerCLI.
On my host 5.5, I can't throw a snapshots of delete/create:
Remove-Snapshot: 14/11/2013-13:45:37 Remove-Snapshot Current permit or version ESXi prohibited the execution of the requested operation.
At line: 1 char: 92
+ Get - VM | Get-Snapshot | Where {$_.} Created - lt ((Get-Date).) AddHours(-46))} | R
eMove-Snapshot < < < <-confirm: $false
+ CategoryInfo : NotSpecified: (:)) [delete-screenshot], RestrictedV) ersion
+ FullyQualifiedErrorId: Client20_VMServiceImpl_RemoveSnapshot_ViError, VM ware.VimAutomation.ViCore.Cmdlets.Commands.RemoveSnapshot
A feature has been remove en 5.5?
Thank you
I guess that's not possible. This has already been discussed in communities. Please take a look at this thread. https://communities.VMware.com/message/2211533
~ dGeorgey
-
Script to create multiple virtual machines model works is not for the network adapter variable
We are working on a script to create multiple virtual machines from a template. The script works fine, but when we try to include commands to set the NIC to a group of specific ports on a dvswitch script errors on. Here's what we have so far. This script (less network variables) works, but we would like to include the network configs in the script as well.
-------------------
This is the part of the script that configures the network/dvswitch adapter... but does not work properly.
$myResourcePool = get-ResourcePool-name DQOL
$dsName = get-Datastore-name "DQOL-DS01.
$myTemplate = get-Template-name "DQVTemplate".
$distributedSwitchPortGroup = get-VirtualSwitch-distributed - name "CVE-dvS04-Nexus - k 5 | Get-VirtualPortGroup-name '979-DQ-SHARED '.
New-VM-name MyVM1-model $myTemplate - Networkname ResourcePool - $myResourcePool - OSCustomizationSpec $mySpecification $distributedSwitchPortGroup - Datastore
(Get-$dsName data store)
New-VM-name MyVM2-model $myTemplate - ResourcePool $myResourcePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)
_____________________
!!!!!!! This part works, but without specifying a network/dvswitch... card!
$myResourcePool = get-ResourcePool-name DQOL
$dsName = get-Datastore-name "CVE-SAN-ISG-DS02-02ef.
$myTemplate = get-Template-name "DQVTemplate".
New-VM-name MyVM3-model $myTemplate - ResourcePool $myResourcePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)
New-VM-name MyVM4-model $myTemplate - ResourcePool $myResourcePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)
Here is the error we get:
New-VM: all parameters can be resolved by using the specified named parameters.
C:\Users\capuanoj\Desktop\Create-multiplevms-fromtemplate.ps1:6 char: 7
+ New-VM < < < <-name MyVM1-model $myTemplate - Networkname $distributedSwitchPortGroup - ResourcePool
ePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)
+ CategoryInfo: InvalidArgument: (:)) [new-VM], ParameterBindingException)
+ FullyQualifiedErrorId: AmbiguousParameterSet, VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM
You cannot use the - model and Networkname - parameters of the cmdlet New - VM in a single order, because both are in different parameter sets. You must first create the virtual machine and then use the cmdlet Set-NetworkAdapter to change the portgroup of the virtual machine. As in example 4, assistance from cmdlet Set-NIC:
-------------- Example 4 --------------
C:\PS>$myNetworkAdapters = Get - VM | Get-NetworkAdapter-name "NIC 1.
$myVDPortGroup = get-VDPortgroup-name MyVDPortGroup
Together-NetworkAdapter NetworkAdapter - $myNetworkAdapters - $myVDPortGroup PortgroupRetrieves all network named "NIC 1" cards of all virtual machines and connects to the specified distributed port group.
-
Is there a way to generate the command CREATE DATABASE from the DB?
Version: 11.2.0.3
Is there a way to generate the CREATE DATABASE command from an existing database?
You can empty the CONTROLFILE to trace and you'll get a CREATE CONTROLFILE statement which you can turn into a CREATE DATABASE statement.
------------
Sybrand Bakker
Senior Oracle DBA.
-
ODI 20088:Error while generating the script
Hello
Today I change the name of my file schema logic (the name is change to lower to uppercase). Then select the new template file schema (only it uses the schema file). Then try to generate the script again, but get an error like this:
ODI 20088:Error while generating the script
java.lang.NullPointerException
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatPopSourceSet(SnpGeneratorSQLCIT.java:7990)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatJobPopCollectionBuild(SnpGeneratorSQLCIT.java:7726)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.preComputePop(SnpGeneratorSQLCIT.java:7668)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatJobPop(SnpGeneratorSQLCIT.java:7568)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatPackageStep(SnpGeneratorSQLCIT.java:10477)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenPackageScenario(SnpGeneratorSQLCIT.java:2883)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenPackageScenario(SnpGeneratorSQLCIT.java:2817)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenScenSourceScenario(SnpGeneratorSQLCIT.java:11481)
at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenScenSourceScenario(SnpGeneratorSQLCIT.java:11505)
at com.sunopsis.graphical.dialog.SnpsDialogScen.generateScen(SnpsDialogScen.java:190)
at com.sunopsis.graphical.scenario.DwgScenGeneratingWizard.generate(DwgScenGeneratingWizard.java:68)
at oracle.odi.ui.action.SnpsPopupActionGenerateScenHandler.actionPerformed(SnpsPopupActionGenerateScenHandler.java:103)
at oracle.odi.ui.SnpsActionControler.handleEvent(SnpsActionControler.java:86)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
in javax.swing.plaf.basic.BasicMenuItemUI$ Handler.mouseReleased (BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6297)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6062)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4660)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
to java.awt.EventQueue.access$ 400 (EventQueue.java:81)
in java.awt.EventQueue$ 2.run(EventQueue.java:627)
in java.awt.EventQueue$ 2.run(EventQueue.java:625)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
in java.awt.EventQueue$ 3.run(EventQueue.java:641)
in java.awt.EventQueue$ 3.run(EventQueue.java:639)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Help, please
Thank you
SébastienIf you have not removed the old schema file, then he should have been working, but there seems to be issues with the link between the interface and the model.
I can't say this is the real reason, but it could be. Since you move the interface file data store, interface probably point to the old schema and model file point to the new schema.I guess you must recreate the interface again. Let me know how it goes with you
Chantal
http://dwteam.in -
script to create the folder on the data store please
Hi all!
I'm having difficulties writing a powercli script to create a file on a data store... we have a mixture of guests ESX 3.5, 4.0 and 4.1, using data storage mounted via NFS.
For work I do, I need to:
(1) create a folder on a data store (check that the folder does not already exist).
2) navigate to the folder
(3) and check if a particular file exists in this folder.
The problem is that the context of my current position makes the code does not. the get-location method returns "C:\temp\ESX", being the record that I run the test script to. I try to use set-card with various settings to try to change the location of a particular data store, but it does not yet work-get-location returns "C:\temp\ESX".
I think that the code for step 3) above is ok, but I can't get any code to work for) 1 and 2).
can someone please?
Thank you
Ross.
You must use the vimdatastore provider to access your data warehouses.
It is documented in vSphere PowerCLI Administration Guide, which is installed on the PC where you installled PowerCLI.
You can use the 'normal' cmdlets to navigate, test and create folders.
For example:
CD vmstore:
LS # will show the upper level
CD MyDatastore\MyFolder # navigate with the alias "cd".
test-path MonAutreDossier # check the existence of a folder or file
mkdir test # create a folder
I hope this helps
-
Need a powershell script to create a local user on esx given the esx server list box
Hello
I need a powershell script to create a local user on esx in a given list entry of esx servers through a csv spreadsheet. The script should ask me the user name and the password for the user name to be created on the given list of esx servers.
Thanks in advance!
Just noticed that there is a lack of vacuum after the - password parameter.
It should be
$userName = Read-Host "Username" $password = Read-Host "Password" -AsSecureString:$true Import-Csv "C:\vmhosts.csv" | %{ Connect-VIServer -Server $_.Hostname -Credential (Get-Credential) New-VMHostAccount -Id $userName -Password $password -UserAccount:$true -GrantShellAccess:$true -Confirm:$false Disconnect-VIServer -Confirm:$false }
____________
Blog: LucD notes
Twitter: lucd22
-
need a script to create multiple tables as the other columns in tables
I need script to create multiple tables as the other columns of tables respectively.
lets consider I want to create tables from table1... table99 like tablex1... .tablex99 columns (without data) respectively (i.e table1 as tablex1, table99 as tablex99).declare cursor c is select object_name from all_objects where object_type='TABLE'; begin for i in c loop execute immediate 'create table '||i.object_name||'_x as select * from '||i.object_name||' where 1=2'; end loop; end; use can use this and put your user names accordingly. If you get any error please post the error.
Maybe you are looking for
-
Change to error in the export file in the order of the elements in the array of construction
Hello world Some time ago I wrote a vi file that performs the following operations: As a first step, it initializes a camera and chooses a region of interest (ROI). Data on the return on investment will be eliminated. Then he raster scan engine stage
-
Hello guys,. To open the screws dynamically, instead of Hardcoding the name VI in a constant string, I do as indicated below to keep addictive for my VI, so if someone ever delete the VI of the project, move, rename, it will create a wire broken some
-
The ccSvcHst.exe process seems to use a lot of resources
What is this good for? Cannot set a low priority because I forgot the password to administrotor. I can't hide the file ".exe"?
-
My email account is blocked and cannot open.
E-mail address is removed from the privacy * blocked can not open I can't get my open email * address email is removed from the privacy * it's been 5 days and I tried to get help on this topic with email * E-mail address is removed from the privacy *
-
My drive is almost full, how can I empty it
hard disk almost full how can I empty it