DataSpace script import and deployment

Hello

I ve tried to write a script wlst which imports a jar file containing a dataspace artifacts in an existing data space and deploys it on the server ALDSP 3.0, without success. Could someone post an example script (may be in wlst or Java) that accomplishes this task or point me to a solution, please?

Thank you in advance.

There should be little or no differences between 3.0 and 3.2. I suspect that you have tried to run the script as-is and do not have the 'DspCommonCommands' which is imported at the beginning. If you post exactly the problem you are experiencing instead of "does not work", then I have a better chance of coming up with a useful response.

Back at the beginning. The original exception that you was because you do not have a session. Have you tried simply adding the creation of a session to what you had? That should have solved the problem. The script of the example shows how create a session.

The content of DspCommonCommands follows:

import wlstModule as wlst

def moveToDspDir():
WLST. Runtime()
WLST. Custom()
WLST. CD ('com.bea.dsp')

def moveToDomainServiceMBean():
moveToDspDir()
WLST. CD ('com.bea.dsp:Name = DomainServiceMBean, DspType = com.bea.dsp.management.DomainServiceMBean')

def moveToDeploymentSessionMBean (sessionName):
moveToDspDir()
If this name is None:
WLST. CD ('com.bea.dsp:Name = SessionMBean, DspType = com.bea.dsp.management.session.SessionMBean.null')
Another thing:
WLST. CD ('com.bea.dsp:Name = SessionMBean, DspType = com.bea.dsp.management.session.SessionMBean.) ("+ session name)

def moveToAdministrationServiceMBean (dataspaceName, sessionName):
moveToDeploymentSessionMBean (sessionName)
WLST. Invoke ('getAdministrationService', [dataspaceName], ["Java.lang.String"])
moveToDspDir()
WLST. CD ('com.bea.dsp:Name = AdministrationServiceMBean, DspType = com.bea.dsp.management.admin.AdministrationServiceMBean.) ' + name +'. (' + dataspaceName)

def moveToDataSpaceConfigMBean (dataspaceName, sessionName):
moveToAdministrationServiceMBean (dataspaceName, sessionName)
WLST.get ('DataSpaceMBean')
moveToDspDir()
WLST. CD ('com.bea.dsp:Name = DataSpaceConfig, DspType = com.bea.dsp.management.configmbeans.DataSpaceConfigMBean.) ' + name +'. (' + dataspaceName)

def moveToDataServicesConfigMBean (dataspaceName, sessionName):
moveToAdministrationServiceMBean (dataspaceName, sessionName)
WLST.get ('DataServicesMBean')
moveToDspDir()
WLST. CD ('com.bea.dsp:Name = DataServicesConfig, DspType = com.bea.dsp.management.configmbeans.DataServicesConfigMBean.) ' + name +'. (' + dataspaceName)

def moveToDataSourcesConfigMBean (dataspaceName, sessionName):
moveToAdministrationServiceMBean (dataspaceName, sessionName)
WLST.get ('DataSourcesMBean')
moveToDspDir()
WLST. CD ('com.bea.dsp:Name = DataSourcesConfig, DspType = com.bea.dsp.management.configmbeans.DataSourcesConfigMBean.) ' + name +'. (' + dataspaceName)

def createDataSpace (dataspaceName):
moveToDomainServiceMBean()
target = wlst.get ('Targets')
WLST. Invoke ('createDataSpace', [dataspaceName, targets], ['java.lang.String', 'java.util.Set'])

def deleteDataSpace (dataspaceName):
moveToDomainServiceMBean()
WLST. Invoke ('deleteDataSpace', [dataspaceName], ['java.lang.String'])

def importDataSpace (dataspaceName, sessionName, importJarFilePath):
moveToDeploymentSessionMBean (sessionName)
com.BEA.DSP.Management.deployment.session import added
Add = DeploymentOptions()
WLST. Invoke ('importJar', [dataspaceName, importJarFilePath, add], ['java.lang.String java.lang.String ',' ',' com.bea.dsp.management.deployment.session.DeploymentOptions'])

def exportDataSpace (dataspaceName, exportJarFilePath):
moveToDeploymentSessionMBean (None)
com.BEA.DSP.Management.deployment.session import ExportOptions
ExportOptions = ExportOptions()
exportoptions.setIncludeConfiguration (1)
exportoptions.setOverwriteJar (1)
WLST. Invoke ("export", [dataspaceName, exportJarFilePath, exportoptions], ['java.lang.String java.lang.String ',' ',' com.bea.dsp.management.deployment.session.ExportOptions'])

def createDeploymentSession (sessionName):
moveToDomainServiceMBean()
WLST. Invoke ("createDeploymentSession", [sessionName], ["Java.lang.String"])
moveToDeploymentSessionMBean (sessionName)

def activateDeploymentSession (sessionName):
moveToDomainServiceMBean()
WLST. Invoke ('activateDeploymentSession', [sessionName], ["Java.lang.String"])

def discardDeploymentSession (sessionName):
moveToDomainServiceMBean()
WLST. Invoke ('discardDeploymentSession', [sessionName], ["Java.lang.String"])

def createFunctionRef (dataServiceLocator, functionName, arity):
from com.bea.ld.metadata import NodeRef
from javax.xml.namespace import *.
QName = QName (dataServiceLocator, functionName)
Return NodeRef.Factory.newInstance () .createFunctionRef (qname, arity)

==========================================

The Readme of the DSP 3.2 wlst samples:

DataServiceCommands.py - DataServicesConfigMBean

DspCommonCommands.py is a utility script that can be used in other scripts.
This script must be registered as a module or must exist in the same
folder from wlst is executed.

Scripts have enough reviews to explain its purpose.
See the javadocs MBean for assistance.

DspSecurityPolicy.py - create and update the security policy for the ODSI resources.

Steps to run the examples.
-------------------------

The steps are for windows.

Open a command prompt.

#run set domain env

CD \odsi_10.3\samples\domains\odsi_sample\bin
setDomainEnv.cmd

#cd in the sample scripts folder

CD \odsi_10.3\samples\wlstscripts

#start wlst

Java weblogic. WLST

#remaining commands are executed in console wlst

#run scripts in the following order

#create empty a space data

execfile ('DomainCommands.py')

#import SimpleApp.jar in this space of data
#For purposes of demonstration, export within data as dataspace_with_config.jar

execfile ('SessionCommands.py')

#configure level dataspace configurations
#create a service account

execfile ('DataSpaceCommands.py')

endpoints #rename datasource
#create a sql statement substitution rule

execfile ('DataSourceCommands.py')

#enable check for a function
#secure an element

execfile ('DataServiceCommands.py')

Exit()

Tags: Fusion Middleware

Similar Questions

  • Help with excel import and delete the page script

    Hello. I will try to make it as simple as possible. I have some data from excel (saved as delimited by tabs) that I need to import in a 5 PDF page. I use the script below to import, and it works fine. All import fields and records the individual (one for each record) PDF. However, I need to extend this functionality by removing some pages before it saves the document by looking at the different boxes. The code below is what I use to import the records.

    // specify the filename of the data file
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text file containing the data
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    var err = 0;
    var idx = 0;
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2) 
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf"); // saves the file
            idx++;
        }
    }
    

    As I said before you import works surprisingly well.

    My PDF consists of 5 pages (info-registration, p1 = Dir-contract = p0, p2 = contract ndarp-brand, p3 = takes-contract, p4 = agreement must be brand). My idea is that on the import of data, the script will look at a few check boxes and determine which contracts to remove on the PDF and then save. I wrote the syntax of which, in my view, what it should look like. I'm not a programmer and know just a little bit. I looked through the documentation and this is what I came with. I don't know how to combine to work. Here's the code I came up with that.

    var dir = this.getField("Associate Director"); // checkbox
    var aldir = this.getField("Alumni Director"); // checkbox
    
    var fac = this.getField("Facilitator"); // checkbox
    var alfac = this.getField("Alumni Facilitator"); // checkbox
    
    var oyb = this.getField("Optimize Your Brain"); //checkbox
    var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
    
    // Below are all the possible training options.
    if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:1, nEnd:2})
    }
    else (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:1, nEnd:2})
    }
    

    How to combine these two so that I can create a document temp import my data, check the boxes to check off and delete the appropriate pages and save the file and then go to the next record? I got the first part done. It imports large and has the right, but I don't know what to do next. Thanks for any help!

    Or y at - it another way to do this?


    Michael

    Wow. Ok. I had it works beautifully. There was a lot of trial and error. Because the script as it was would have, would open the original PDF, delete the pages needed, then save the file. While it would be to go to the next record is missing pages in PDF and bomb to open. I hunted and searched for a way to do this. I found "this.insertPages" in the documentation. Finally, what worked was so move the "save under" in the service and put it under every variation of check. So now when checking the boxes, he performs the check, removes the mandatory pages, stops, insertions of back in deleted pages from the original file, leave the service and finally goes to the next record.

    Here is my final script:

    // This code looks at an excel (tab delimited) file, imports the records into a PDF form 10 Pages long.
    // Then checks a series of checkboxes and deletes the pages that aren't associated with first page.
    // After it deletes these pages it reinserts the deleted pages so it can do the checks for the next record in the (tab delimited) file.
    
    // variables for importing excel data
    var err = 0;
    var idx = 0;
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    //Checking a bank of 6 checkboxes and determine which pages need to be deleted, save the file, and the insearch the deleted pages again.
    function seekandDestroy() {
        if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
    }
    
    // Imports records does the above function then go the next record, all the while doing error reporting.
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2)
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            var dir = this.getField("Associate Director"); // checkbox
            var aldir = this.getField("Alumni Associate Director"); // checkbox
            var fac = this.getField("Facilitator"); // checkbox
            var alfac = this.getField("Alumni Facilitator"); // checkbox
            var oyb = this.getField("Optimize Your Brain Site Coordinator"); //checkbox
            var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
            seekandDestroy(dir, aldir, fac, alfac, oyb, poyb); //performs the above function
            idx++; //goes to next record
        }
    }
    
  • Import and XMLImport Script

    Hello

    I have a confusion about importing and XMLImport script
    We can use XMLImport and the two Import Script to load the page definitions IE the XML file. in MDS


    What is the diff between them based on their uses?

    Thanx

    Import command is usually run from the premises it IE prompt CMD and importing XML we run unix server.

    Thank you
    -Anil

  • Using the script for import and export

    Hello

    Can any such a me what is the use of the script for import and export.

    After you move the pages from / to server what is the need to import / export command.

    export/oracle/apps/ap/setup/webui/customizations/site/0/SetupPG - rootdir < destination path > - user < database username > - password < database password > - dbconnection "(description = (address_list = (address = (community = tcp.world) (protocol = tcp) (host = < host name > (port < port id > =))) (connect_data = (sid = < sid >)))".) "

    Thanks in advance,
    Roselyne

    Hi Flo,

    Page and the region are stores in database import/export we really want pages/areas to store in the database.

    Thank you
    -Anil

  • can someone provide me with processes of generation and deployment for bb os 6

    If possible common build process for all blackberry platforms. The docs that are provided by blackberry drove me crazy. Those who are really help less.

    Please provide me the details as soon as possible

    If you are targeting WebWorks for BBOS 5 - 7.x, Tablet OS and WebWorks 1.0 for BB10, you can do it with an Ant Build script that allows you to build and deploy by modifying and running the script. The Setup is pretty painless, but there is a bit of a learning curve. However, she should really improve your speed by producing new construction to test.

    See the script here: https://github.com/timwindsor/BB10-WebWorks-Community-Samples/tree/master/Ant-Build-Script

    There is a link to a video that shows how to set up as well.

    This script does not work with the new WebWorks 2.x for BB10 if, but if you are targeting the old platforms, WebWorks 1.0 is more compatible anyway.

  • BB-Ant-tools and deployment to the Simulator

    Hello world:

    I have a library intern that I developed called Ichabod required by one of our applications, Spyder, which runs on the operating system Blackberry 4.5.0 (our original goal was to 8330 devices).  I had all this work with bb-ant-tools to compile the library, which is located in a separate project, and deploy it in C:\Program Files\eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.21\components\simulator.  The Spyder application debugged very well in the eclipse plugin (I use Galileo with the 1.1.2 version of the plugin RIM).

    Today, however, I went to debug the Spyder application after making a few changes to the code (no code changes have been made in Toad) and found that the application could not find the module Ichabod suddenly.  I noticed that there is now a directory net.rim.ejde.componentpack4.5.0_4.5.0.28\ in my eclipse plugins folder, thinking that maybe I've updated component packs without realizing account, I adjusted the path target library of Ichabod and rebuilt with bb-ant-tools.  The same problem.  So, I tried to delete the .cod and all associated files the two directories 4.5.0.21 and 4.5.0.28, recompiled the Ichabod library to deploy in two places and found that it worked with 4.5.0.21, but not with 4.5.0.28 (it is not listed in the screen modules under settings, either).

    I checked the .cod file is present in the components\simulator folder, but I can't understand why the simulators do not recognize the file.

    Any suggestions?

    My build.xml ant-bb-tools script is attached.

    Thank you

    ~ Scott

    
    
    
    
        
    
        
    
        
    
        
    
        
            
                
                    
                    
                    
                    
                
            
        
    
        
            
            
        
    
        
            
    
                
                
    
                
                    
                        
                        
                    
                
            
        
    
    

    So it turns out, after removing the 4.5.0.28 Eclipse plugin and put it back, it was what was causing my problems.  I don't know if this has anything to do with it, but I also removed the JDE 4.5.0 library (which has been correctly updated version 28) from the path of construction of the project Ichabod and replaced by the JDE even.

    After all of this nonsense, my library now appears in the Simulator.

  • Develop 32 bit 11 GR 1 material and deploy 64-bit?

    Hello

    Wanted to know if I can write formulas with 32-bit forms and reports (on 32-bit windows 7) and then deploy them to 64-bit forms and reports running on 64-bit Windows?

    Or it would be necessary to have them both with the same bits of sizes?  In addition, it is important that users are on 32-bit or 64-bit Windows?

    Thank you

    You can develop your 32-bit forms and deploy 64-bit, but you have to recompile all modules (fmb, pll, mmb) on the 64-bit computer ((fmx, plx, mmx) binaries are not compatible).

  • Gives the Script import FDM of oracle RDB to import - import has failed. Data not valid or empty content.

    Hi all

    I create an FDM interface to extract data from Oracle RDB and onto an essbase database. I feel that if you have to shoot the script import data of RDB, you must create an integration. So I created a script to import integration based on the example given in the FDM Document admin.

    The Script is as below:

    Function PSIP_TEST (lngCatKey, dblPerKey, strLoc, strWorkTableName)

    '------------------------------------------------------------------

    "Import oracle Hyperion FDM integration script:

    '

    ' Created By: admin

    "Creation date: 18/02/2014-18:00:33.

    '

    ' Object:

    '

    '------------------------------------------------------------------

    Dim cnSS ' ADODB. Connection

    Dim strSQL ' SQL string

    Dim rs ' Recordset

    Dim rsAppend ' tTB table add rs object

    'Initialize objects.

    Define the cnSS = CreateObject ("ADODB. Connection")

    Set rs = CreateObject ("ADODB. Recordset')

    Set rsAppend = DW. DataAccess.farsTableAppend (strWorkTableName)

    "To connect to the Oracle database

    CNSS. Open "Provider = OraOLEDB.Oracle.1; Password = PSIP_TST; Persist Security Info = True; User ID = PSIP_TST; Data Source = PSIP.

    ' Create the query string

    strSQL = "SELECT YEAR, COST_CENTRE, PROGRAMME_CODE, PROJECT_CODE, ACCOUNTS, AMOUNT FROM VW_PSIP_EBUDGET_ESTIMATES.

    «Get data»

    RS. Open strSQL, cnSS

    "Locate the data.

    If rs.bof and rs.eof then

    RES. PlngActionType = 2

    RES. PstrActionValue = "no records to load!

    Exit Function

    End If

    ' Loop through records and add table APCs to place DB

    If it is rs.bof and not rs.eof then

    While Not rs.eof

    rsAppend.AddNew

    rsAppend.Fields ("PartitionKey") = RES. PlngLocKey

    rsAppend.Fields ("CatKey") = RES. PlngCatKey

    rsAppend.Fields ("PeriodKey") = RES. PdtePerKey

    rsAppend.Fields ("DataView") = "CDA".

    rsAppend.Fields ("CalcAcctType") = 9

    rsAppend.Fields ("Account") = rs.fields ("ACCOUNTS"). Value

    rsAppend.Fields ("Entity") = rs.fields ("COST_CENTRE"). Value

    rsAppend.Fields ("UD1") = rs.fields ("COST_CENTRE"). Value

    rsAppend.Fields ("node2") = rs.fields ("PROGRAMME_CODE"). Value

    rsAppend.Fields ("UD3") = rs.fields ("PROJECT_CODE"). Value

    rsAppend.Fields ("Amount") = rs.fields ("Amount"). Value

    rsAppend.Update

    RS. MoveNext

    Loop

    End If

    "Loaded files

    RES. PlngActionType = 6

    RES. PstrActionValue = "import successfully!

    'Assign the return value.

    SQLIntegration = True

    End Function

    When I run the Script in the Script Editor, I get the following error:

    Error: An error occurred while running the script:

    -2147467259-data access error.

    Online: 19

    If I see in the error log, it is as follows:

    ERROR:

    Code... - 2147467259

    Description... ORA-00903: invalid table name

    Process... clsDataAccess.farsTableAppend

    The component... upsWDataWindowDM

    Version.......................................... 1112

    Thread........................................... 41900

    Nude of the line. 19 is as follows: Set rsAppend = DW. DataAccess.farsTableAppend (strWorkTableName) and, therefore, I thought that perhaps this is when I run the script in the Script Editor, perhaps that the value of the variable "strWorkTableName" does not get filled it is why it gives an error.

    So I ran the import stage in the Workflow, and Got the following error:

    Error: Failed to import. Data not valid or empty content.

    and there is no entry in the error log.

    I'm lost, need your help please.

    One last thing, I would like to ask is kindly please post if my connection string is correct, either:

    CNSS. Open "Provider = OraOLEDB.Oracle.1; Password = PSIP_TST; Persist Security Info = True; User ID = PSIP_TST; Data Source = PSIP.

    I read that FDM is a 32-bit product and will require a connection 32-bit oledb provider.

    FDM here is installed on a 64-bit computer and the provider that is used here in the connection string is 64-bit.


    Please help, my work here came to a fixed support. Kindly help

    That would mean that your 32-bit TNSNAMES. ORA file does not have a good connect descriptor for what you provide in the UDL file.

    Check your TNSNAMES 32bits. ORA file and make sure you have a good connect descriptor for the Oracle database.

  • [SOLVED] Problems of packaging and deploying an application in an external WLS ADF

    Hello.

    I use JDeveloper 11.1.1.7.0, who has a WebLogic Server embedded 10.3.5.

    When I test my application by right clicking on my page and run... in WLS on-board, everything works perfectly.

    It works with any page and any flow.

    Now, I have to deploy the same application to an external 10.3.6 WLS

    First of all, I have the application package in one EAR to aid Assistant JDeveloper. I did right click in application-> Deploy-> MyApplication...-> select deploy ear...


    Then, when .ear file is built, I run startWebLogic (I have already created a domain with the ADF operating options) and deploy the .ear as an app.

    I have a lot of warnings, but the final message is deployment is ok.

    It is therefore my surprise that I get a NullPointerException in the first page I test in the first access to an ADF/view iterator in the Java class:

    DCIteratorBinding iter = ADFUtils.findIterator("BusinessDataView1Iterator");
    ViewObject vo = iter.getViewObject(); -- iter is null
    
    
    

    This had worked many times in embedded 10.3.5 WLS.

    10.3.6 WLS console output is:

    19-feb-2014 15:04:26 oracle.adfinternal.controller.metadata.MetadataServiceImpl$Bootstrap logActivityWarnings
    WARNING: ADFc: /WEB-INF/adfc-config-reportes.xml:
    ...
    ...
    
    ...
    ...
    ADVERTENCIA: ADFc: /WEB-INF/adfc-config.xml:
    19-feb-2014 15:04:26 oracle.adfinternal.controller.metadata.MetadataServiceImpl$Bootstrap logBeanWarnings
    ADVERTENCIA: ADFc: Se ha detectado una definicion de bean gestionado duplicada para 'backing_views_administracion_inicio'.
    ...
    ...
    
    ...
    ...
    19-feb-2014 15:04:30 oracle.adfinternal.controller.util.WebAppConfigFactory createConfig
    INFO: ADFc: Se estß utilizando la vista '<null-value>' como la pßgina inicial de la aplicaci¾n.
    19-feb-2014 15:04:32 oracle.adf.share.jndi.ReferenceStoreHelper getReferencesMapEx
    ADVERTENCIA: Incomplete connection reference object for connection:MY_DB_JDBC
    19-feb-2014 15:04:47 oracle.adfinternal.controller.application.AdfcExceptionHandler handleException
    GRAVE: ADFc: al manejar una excepci¾n, el manejador de excepciones de la aplicaci¾n ha devuelto una nueva excepci¾n.
    java.lang.NullPointerException
            at com.mypackage.Gestion.<init>(Gestion.java:37)
    
    
    
    

    Between the sections of points, there are similar warnings.

    I checked the .ear files (contains a .war), decompression it (the .war too) to a different folder and look for duplicates in text in any file and adfc - config.xml does exist only once in the .ear

    How can I solve this? Someone have had similar problems during deployment in an external WLS?

    Any help is very much appreciated, because this is so stuck to me, and it is urgent too.

    I thank in advance. Concerning

    Well, I finally solved my problem.

    The steps are:

    Finally, it works.

    Now, let me ask another question.

    I have change the DB connection (not the name, is not posible) to another user in the same DB schema. I want to check if the application still works and it does. But why? My test is right?

    Thanks Timo. Concerning

  • create and deploy virtual computer

    Hi all

    I want to create a VM and deploy virtual computer by using ISO image. I need to automate this process using powercli.

    Could you please provide me with an example script to do this.

    Thank you

    Kalai

    You will need to change the boot order in the BIOS of the virtual machines to boot from the CD.

    Take a look at specify bootable for a virtual machine devices

  • Concerning the import and export of Table

    Hi team,

    My question is what is quick way to export and import the data in the table because most of the time I import and export data activate I usually

    If data less than 10 hundreds I'll use sql developer only export to insert the . script

    But my question if we lack 17 records dealing with import and export a table

    Note:-If we do not have conditional sys.

    Current version is using 9i and 10g

    Thank you

    Suman

    Data pump works only on 10g:

    ORACLE-BASE - Oracle Data Pump (expdp and impdp) in Oracle Database 10g

    Have a look here for more options 'pre - 10 g':

    Ask Tom & quot; export and import the best option to use in... & quot;

  • generate the ear file in jdev and deployed using Ant

    Hi all

    I have a request of the ADF and I need generate the ear file and deploy it using ant script.
    The file option ear in deployment profiles (file-> new-> deployment profiles) is disabled in my worm jdev (11.1.1.5.0).

    Any help or pointers are highly appreciated.

    Thank you
    Usha

    You get the EAR deployment descriptor only if you add it to the application level. They are out on grayes model ot see controller projects.
    Right-click on the Application and select "new-> deployment descriptor.

    Timo

  • Cannot import and export files to the Interface of the IOM

    Hello world

    I had a problem at the IOM import deployment interface Manager file and export a Deployment Manager

    When I import and browse to the XML file, the import interface there is nothing displayed.

    At the level of the console I can find: < Target size = '0' > < / Target >

    When exporting, it shows the error at the end and no file created.

    Someone at - it had the same problem?

    P.S. to my work environment there is no problem, only to according to the customer!

    Thank you.

    David

    Check the JRE installed in your browser...

    Thank you

  • How to create a Web services to an external service and deploy to weblogic

    Hello

    I am trying to create a Web service for the wsdl
    http://ABR.business.gov.au/abrxmlsearch/ABRXMLSearch.asmx?WSDL
    who will help me to validate the number of the NBA.

    And I would like to create a war file and deploy it to a weblogic server,
    But the server is running behind the firewall,
    I could run the webservice of jdeveloper, but when deploy us in weblogic server
    the Web service does not work,

    We need to give the parameter in the Web service itself or the proxy details must exist in the weblogic proxy server?

    Thank you.

    With respect,
    Kali.
    OSSI.

    Kali,

    IMO, it would be preferable to apply the proxy settings on a global scale.

    I can't see a specific proxy settings page on my weblogic instance. Perhaps, you must add the properties of the JAVA virtual machine directly in the weblogic startup script.

    Edit: For a server JVM Arguments can be configured in the WLS console-> choose the server and go to Configuration-> start server.

    Published by: BijeshKrishnadas on October 18, 2010 21:01

  • FDM Import (integration) Script - import failed

    Good day, colleagues.

    That we encountered the following problem. On the 11.1.1.3 integration script import of the system we run of FDM (called "SQLIntegration") Administrator's Guide, it is done properly (in the window pop up the message "Import SQL successful!"), but FDM lance error message "error: failed to import" and no data is loaded. Log file is empty.

    Please, share your experience.

    Did you put the function = true at the end?

Maybe you are looking for

  • Apple Watch 42 or 38 mm?

    Hello! Which sized watch would you recommend for a 17 year old?  I wonder if the 42 would be too big for his wrist?  I have not seen these sizes in person, so any advice would be helpful.  I wonder if the 42 would just look huge on her wrist.  Thank

  • omen of HP: rattling sound of the fan

    Hi all I bought my Hp Omen in December and were treated like gold since, but whenever my is is on a flat surface the infallibly good fan made a rattling noise that only becomes stronger when I have the game. I have updated the bios and try to keep my

  • Journ.e Touch - need USB drivers

    Can you give me a link to download the USB drivers for toshiba journ.e touch?

  • I have an iphone more than 6 s and my app store icon disappeared?  How can I get that back?

    I have an iphone more than 6 s and my app store icon disappeared.  How do restore it or find it?

  • How can I write file to a discrete time step?

    I am writing some variables to output to a binary file in time real (PosX, Posy, elapsed time) with a while loop (see blockdiag.png).  I use the time achieved by LabVIEW with a clock from external devices to interpolate the position values, before as