Create UDM using os script

Hi Guys,
I have been given the following task to be done asap, but have little issues, as i have read from the oracle docs we need to have os scripts to apply certain metrics which are user defined, i have following tasks but unable to get the scripts,
Create a User Defined Metrics (UDM)  alerting when listener file is in Dbug mode
Create a UDM alerting verifying Rman is using Rman catalogue
Create a UDM alerting when WEB Logic is in debug mode
Create a UDM alerting when WEB Logic when log rotation is not set
I am using OEM 11g
If any one has any scripts or any suggestions to do this, please share.
Thanks and Regards,
Littlefoot

Hi 844375,
I have created the same script which you have provided(seems like you and me have a similar thinking upto the commenting part), but the script provided seems to be incomplete, it is empty, first step of the script is empty, i.e "/tmp/udm_lsnrctl_script.sh" is not provided without which the next part is incomplete.
following is the scripts i have created :
1.
UDM_LSNRCTL_DEBUG_CHECK
TASK : To check if a listener is put in debug mode.
Script used :
>> STEP 1 : udm_lsnrctl_script.sh
#The script to check if the listener is in debug mode
#script by Littlefoot, version 1.0
#Step 1 - file name be udm_lsnrctl_script.sh
#Step 2 - use udm_lsnrctl_testrun.sh to fetch the listener names in debug mode
#The below script will check for ASM instance
for k in `ps -ef | grep pmon | grep asm* | awk '{print $8}' | awk -F "_" '{print $3}'`
do
echo $k 'inside for loop to get the ASM Home path'
. oraenv <<-EOF
$k
EOF
#If more than one listener then we need to use for loop
#"lsnrctl show trc_level" is the command in to check the debug status
for m in `ps -ef | grep inh | grep -v grep | grep "grid" |awk '{print $9}' `
do
echo $m 'inside for loop to check for ASM listeners'
lsnrctl <<-EOF
set current $m
show trc_level
exit
EOF
done
echo 'outside for loop to check for ASM listeners'
done
echo 'outside for loop to get the ASM Home path'
#This script will not TEST FOR +ASM1
for i in `ps -ef | grep inh | grep -v grep |awk '{print $8}' | awk -F "/" '{print $6}' | grep -v tnslsnr`
do
echo $i 'inside for loop to get the non ASM home path'
#`ps -ef | grep pm n | grep -v grep |awk '{print $8}' | awk -F "_" '{print $3}'`  #check this line once again
#check the above line once again
#check the above line once again
. oraenv <<-EOF
$i
EOF
cd $ORACLE_HOME
for j in `ps -ef | grep inh | grep -v grep | grep -v "grid" |awk '{print $9}'| grep $i ` ###CHECK THIS LINE TOO CHECK IF THE FIRST LINE IS ALWAYS --LISTENER-- ONLY ELSE IT WILL RESULT WORNG OUTPUT
###THIS LINE CAN BE USED AS AN ALTERNATIVE tTO AVOBE LINE CHCEK AND PROCEEED
#for j in `ps -ef | grep inh | grep -v grep |grep -v "LISTENER " |awk '{print $9}'`
#To be more pricise
#for j in `ps -ef | grep inh | grep -v grep |grep -v "grid" |awk '{print $9}'`
do
echo $j 'inside for loop to check non ASM listeners'
lsnrctl <<-EOF
set current $j
show trc_level
exit
EOF
done
echo 'outside for loop  to check non ASM listeners'
done
echo 'outside for loop to get the non ASM home path'
exit 0
>> STEP 2 : udm_lsnrctl_testrun.sh
#!/bin/ksh
#The script to check if the listener is in debug mode
#script by Harish, version 1
#Step 1 - file name be udm_lsnrctl_script.sh
#Step 2 - use udm_lsnrctl_testrun.sh to fetch the listener names in debug mode
#This file to run the above script and store the output into another file to check/compare the required information
#file name udm_lsnrctl_testrun.sh
#Put the output of udm_lsnrctl_script.sh into udm_lsnrctl_debug_log.txt to check for listener names in debug mode
date > /oracle/app/agent11g/scripts/udm_lsnrctl_debug_log.txt
/oracle/app/agent11g/scripts/udm_lsnrctl_script.sh >> /oracle/app/agent11g/scripts/udm_lsnrctl_debug_log.txt
FILE=/oracle/app/agent11g/scripts/udm_lsnrctl_debug_log.txt
out_result=`grep -i "set to" $FILE  | grep -v off |awk '{print $1}'`
#Check if output is null then echo Debug Disabled
message1=' have the debug enabled '
if [ -z "$out_result" ]
then
out_result='Disabled'
#out_result=1
oute='No listener'
else
oute=$out_result
#out_result=2
out_result='enabled'
fi
em_result=$out_result
echo "em_result=$em_result"
echo "em_message=$oute $message1 "
exit 0
2.
UDM alerting verifying Rman is using Rman catalogue : has been addressed in other post of mine.
3.
UDM_WLS_DEBUG_CHECK
Task : To check if the debug mode is enabled in the wls targets
Script used :
>> udm_wls_debug_check.sh : NOTE : the domain home path is to be put separately for each server
cat /oracle/app/product/fmw/user_projects/domains/custcons_domain/bin/setDomainEnv.sh|grep debugFlag=  > udm_wls_debug_log.txt
FILE=udm_wls_debug_log.txt
out_result=`grep -i "true" $FILE`
echo $out_result
domain_name=`grep -i "/oracle/app/product" udm_wls_debug_check.sh | awk '{print $2}' | awk -F "/" '{print $8}'`
echo $domain_name
message1='have the debug enabled '
if [ -z "$out_result" ]
then
out_result='Disabled'
#out_result=1
oute='No domain '
else
oute=$out_result
#out_result=2
out_result='enabled'
oute=$domain_name
fi
#em_result=$out_result
echo "em_result=$out_result"
echo "em_message=$oute $message1 "
exit 0
4.
UDM_WLS_LOGROTATION_CHECK
TASK : To check if log rotation is enabled and not set more than 7 days
Script used :
>> udm_wls_logrotaion_check.sh :
#!/bin/bash
#The script to check if the log rotaion is enabled
#Step 1 - file name udm_wls_debug_check.sh contains the domain path
#Step 2 - use udm_wls_debug_check.sh to get the domain path and then get the config.xml file to check if logrotation id enabled
#This file to run the above script to check th logrotaion is true/false
#file name udm_wls_logrotaion_check.sh
file_name=`cat /oracle/app/agent11g/scripts/udm_wls_debug_check.sh | grep setDomain | awk '{print $2}' | awk -F "/" '{print "/"$2"/"$3"/"$4"/"$5"/"$6"/"$7"/"$8"/config/config.xml"}'`
rotation_type=`cat $file_name | grep rotation-type | awk -F ">" '{print $2}' | awk -F "<" '{print $1}'  | awk 'NR<2'`
file_count=`cat $file_name | grep file-count | awk -F ">" '{print $2}' | awk -F "<" '{print $1}'  | awk 'NR<2'`
domain_name=`grep -i "/oracle/app/product" udm_wls_debug_check.sh | awk '{print $2}' | awk -F "/" '{print $8}'`
#echo $file_name
#echo $rotation_type
#echo $file_count
if [ "$rotation_type" = "None" ]
then
#echo 'Disabled'
out_result='Disabled'
echo "em_message=$domain_name do not have log rotaion enabled"
elif [[ "$file_count" -gt "7" ]]
then
#echo 'Greater than 7 files'
out_result='Disabled'
echo "em_message=$domain_name has logrotaion enabled with file count morethan 7"
else
#echo 'Enabled'
out_result='Enabled'
echo "em_message=$domain_name have log rotaion enabled "
fi
echo "em_result=$out_result"
exit 0

Similar Messages

  • Only the last account is created when using this script in combination with a CSV

    Hi, I've got a weird problem when using this script:
    $Users = Import-Csv -Delimiter ";" -Path "......csv"  
    FOREACH ($User in $UserList) { $ User }
        $OU = $User.path
        $UPN = $User.UPN
        $Password = $User.password 
        $Detailedname = $User.firstname + " " + $User.Lastname 
        $UserFirstname = $User.Firstname 
        $FirstLetterFirstname = $UserFirstname.substring(0,1) 
        $SAM =  $User.UPN
        $Company = $User.company
        $Description = $User.description
        $AccountExpirationDate = $User.accountexpirationdate
    $params = @{ 'Name'=$Detailedname;
                 'SamAccountName'=$SAM;
                 'UserPrincipalName'=$SAM;
                 'DisplayName'=$Detailedname;
                 'GivenName'=$UserFirstname;
                 'Surname'=$User.Lastname;
                 'AccountPassword'=(ConvertTo-SecureString $Password -AsPlainText -Force);
                 'Enabled'=$True;
                 'PasswordNeverExpires'=$True;
                 'Path'=$OU;
                 'Company'=$Company;
                 'Description'=$Description;
                 'AccountExpirationDate'=$AccountExpirationDate }
    New-ADUser @params
    The CSV file has columns with the name: Lastname;Firstname;Password;Company;Description;UPN;path;AccountExpirationDate
    Script runs without errors, but only creates the last line in the CSV file. Anyone that can help me, of put me in the right direction? Should be great!
    Michiel
    the Netherlands

    Hi Michiel,
    You'll need to move $params and New-ADUser up into the foreach loop.
    EDIT: Also, remove the { $ User } that you have next to the foreach loop. You're also using $Users instead of $UserList.
    EDIT2: Here's a cleaned up version:
    $UserList = Import-Csv -Delimiter ";" -Path "......csv"
    FOREACH ($User in $UserList) {
    $OU = $User.path
    $UPN = $User.UPN
    $Password = $User.password
    $Detailedname = $User.firstname + " " + $User.Lastname
    $UserFirstname = $User.Firstname
    $FirstLetterFirstname = $UserFirstname.substring(0,1)
    $SAM = $User.UPN
    $Company = $User.company
    $Description = $User.description
    $AccountExpirationDate = $User.accountexpirationdate
    $params = @{ 'Name'=$Detailedname;
    'SamAccountName'=$SAM;
    'UserPrincipalName'=$SAM;
    'DisplayName'=$Detailedname;
    'GivenName'=$UserFirstname;
    'Surname'=$User.Lastname;
    'AccountPassword'=(ConvertTo-SecureString $Password -AsPlainText -Force);
    'Enabled'=$True;
    'PasswordNeverExpires'=$True;
    'Path'=$OU;
    'Company'=$Company;
    'Description'=$Description;
    'AccountExpirationDate'=$AccountExpirationDate
    New-ADUser @params
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • How create indesign using Java Script

    I am new in indesign and want to create indesign application using JavaScript.
    When i use AppleScript to create Indesign Application i use this statement
    tell application "Adobe InDesign CS5.5"
    set myDocument to make document with properties
    end tell
    Indesign Application create sucessfully.
    How create Indesign Application using JavaScript ?
    or what is equivelent statement of ( tell application "Adobe InDesign CS5.5" ) in Java Script.
    There are some java scripting example given on forum or in sdk.These all example start with app.
    when I debug these java script using ExtendScript ToolKit 3.6 It give error on app (undefined app).I think this app ia application object.
    How create  indesign application object  app in javascript ?
    While this script run sucessfully when i put these script in C:\Program Files\Adobe\Adobe InDesign CS5.5\Scripts
    and to run these script use Scripts panel (choose Window > Utilities > Scripts), then double-click the script name in the Scripts panel in indesign application.But In this case first i start indesign application and then choose Window > Utilities > Scripts then double-click the script name in the Scripts panel.
    I want to create Indesign Application (instance) using JavaScript.When I run or (debug) my JavaScript in any javaScript tool like ExtendScript ToolKit 3.6 then Indesign application should start, like in Apple Script.
    Thanks

    Thanks Vamitul for reply
    For example when i run SelectObjects.jsx An InDesign CS5.5 JavaScript in ESTK  then message prompt "Target Adove Indesign CS5.5 is not running. Do you want to lanch." Then on click yes Indesign application start.
    I want to Know how indesign object "app" is created to start Indesign application on click yes.
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/In DesignScripting/InDesign-ScriptingTutorial.pdf
    Like in VB to create indesign object we use CreateObject("InDesign.Application"). In javascript how create object say "app" of InDesign Application.
    For example if  i write
    var myDocument = app.documents.add();
    var myTextFrame = myDocument.pages.item(0).textFrames.add();
    myTextFrame.geometricBounds = ["6p", "6p", "24p", "24p"];
    myTextFrame.contents = "Hello World!";
    in a simple text file and save it with .js extention and to open this double click on this  it give error undefined "app".
    Source :Microsoft JScript runtime error
    So how define "app" or create indesign object ?
    Thanks

  • Create user using CATT script

    hi,
    I have done catt script to create user in BW 3.5 ... now I am trying to crete the same script in BW 7.0......
    I have created catt script using SECATT transaction....
    I download the varient to .txt file
    [VARIANT] [DESCRIPTION] ZTEST898
    BDC field value
    *ECATTDEFAULT ztest898
    If I pass parameter directly , the script executing fine ...
    If I try to pass parameters through .....txt file ... it is giving error
    Variants that Match Selection Cannot Be Found
    help me please.
    Regards
    Ben

    1. Create a text file with the UDML to create a new user(s):
    DECLARE USER "NewUser" AS "NewUser" UPGRADE ID 1 FULL NAME {New User} PASSWORD '' PERIODICITY 90
         HAS ROLES (
              "Administrators",
              "XMLP_ADMIN" )
         DESCRIPTION {password = Empty}
         PRIVILEGES ( READ);
    Merge it with your your current repository using nQUDMLExec.exe
    E:\OracleBI\server\Bin>nQUDMLExec.exe -U Administrator -P Administrator -I E:\temp\NewUser.txt -B E:\temp\paint.rpd -O e:\temp\newrep.rpd
    Regards John
    http://obiee101.blogspot.com/

  • Script to Create Folders Using Photoshop Scripting Mac/Windows

    Can anyone help me. I want to create a script to create folders and run the script in Photoshop.
    I am a real novice at scripting and I do not know if this can be done.
    Thanks

    //Folder to create on the desktop
    var folder1 = Folder("~/desktop/My New Folder");
    //Check if it exist, if not create it.
    if(!folder1.exists) folder1.create();

  • Creating Datasource in WLS 10.x using ant script

    All,
    We need to create datasource using ant script which uses wlconfig, has anyone done it before? tried the below script, it creates the datasource and connection pool seperately. In WLS 10.x the connection pool entries are part of the datasource itself but the script creating seperately.
    <?xml version="1.0" encoding="windows-1252" ?>
    <project name="deploy" default="all" basedir=".">
    <!-- master build.properties -->
    <property file="../../build/build.properties"/>
    <property file="build.properties"/>
    <echo> ${wls.home} </echo>
    <echo> ${wls.url} </echo>
    <path id="library.WL">
    <pathelement location="${wls.home}/server/lib/weblogic.jar"/>
    <pathelement location="${wls.home}/../modules/features/weblogic.server.modules_10.3.1.0.jar"/>
    <pathelement location="${wls.home}/server/lib/webservices.jar"/>
    <pathelement location="${wls.home}/../modules/org.apache.ant_1.7.0/lib/ant-all.jar"/>
    <pathelement location="${wls.home}/../modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar"/>
    </path>
    <taskdef name="wldeploy" classpathref="library.WL"
    classname="weblogic.ant.taskdefs.management.WLDeploy"/>
    <taskdef name="wlconfig" classpathref="library.WL"
    classname="weblogic.ant.taskdefs.management.WLConfig"/>
    <target name="init">
    <wlconfig username="${server.user}" password="${server.password}"
    url="${wls.url}">
    <query domain="base_domain" type="Server" name="soa_server1" property="soaServer"/>
    <query domain="base_domain" type="Server" name="soa_server1" property="soaServers"/>
    <create type="JDBCConnectionPool" name="${pool.name}"
    property="pool">
    <set attribute="CapacityIncrement" value="1"/>
    <set attribute="DriverName" value="${database.driver}"/>
    <set attribute="InitialCapacity" value="1"/>
    <set attribute="MaxCapacity" value="10"/>
    <set attribute="Password" value="${database.password}"/>
    <set attribute="Properties" value="user=${database.user}"/>
    <set attribute="RefreshMinutes" value="0"/>
    <set attribute="ShrinkPeriodMinutes" value="15"/>
    <set attribute="ShrinkingEnabled" value="true"/>
    <set attribute="TestConnectionsOnRelease" value="false"/>
    <set attribute="TestConnectionsOnReserve" value="false"/>
    <set attribute="URL" value="${database.connectString}"/>
    <set attribute="Targets" value="${soaServer}"/>
    </create>
    <create type="JDBCTxDataSource" name="${datasource.name}">
    <set attribute="JNDIName" value="${datasource.jndi.name}"/>
    <set attribute="PoolName" value="${pool}"/>
    <set attribute="Targets" value="${soaServers}"/>
    </create>
    </wlconfig>
    </target>
    <target name="deploy" depends="init"></target>
    </project>
    database.connectString=jdbc:rmi://localhost/jdbc:odbc:RoosterDSN
    database.user=admin
    database.password=admin
    database.driver=org.objectweb.rmijdbc.Driver
    datasource.jndi.name=jdbc/MsAccessDataSource
    datasource.name=MsAccessDataSource
    pool.name=MsAccessDataSourcePool
    Was wondering if anybody has done it? please let me know if it's possible.
    Thanks in advance..

    Hi Girish,
    Please go through with below post.
    http://rocksolutions.wordpress.com/2010/03/29/creating-a-connection-pool-using-ant-in-weblogic/
    Let me know in case any issues observed.
    Thanks

  • Azure WebJob - can it take parameters and can be it be created using a script

    Hi,
    I have seen videos on Azure Webjobs and the scenario there is that an exe is taken and transformed into an Azure Webjob. If the exe takes parameters, is it possible that the webjob take parameters?
    Also, I see that the Azure webjob is being created through the Azure portal, is it possible to create it using a script on the fly?
    Thanks

    Hi
    Azure webjobs scripts or programs can be one of the following types:
    The following file types are accepted:
    .cmd, .bat, .exe (using windows cmd)
    .ps1 (using powershell)
    .sh (using bash)
    .php (using php)
    .py (using python)
    .js (using node)
    .jar (using java)
    you dont need to create them from Azure portal always. you can create your program in Visual studio and publish your code to Azure to be executed.
    About the parameter, you can have scheduled webjobs which will trigger at certain time and then they can read from different resourced (database, azure service bus, file etc) and that can be considered as input I guess.
    Regards
    Aram

  • Change Master page of a site using ECMA Script in sharepoint 2010

    Hi All,
    I'm working on SharePoint 2010.
    I have a requirement where in I need to create a site and apply a particular master page to the newly created site using
    ECMA Script.
    The site gets created but while applying the master page it gives me an error stating the method 'set_masterUrl' is not defined.
    Here is my code:
    $(document).ready(function () {
    ExecuteOrDelayUntilScriptLoaded(createSite, "sp.js"); //This is used to ensure until sp.js is loaded, createSite will not be executed.
    function createSite() {
    var context = SP.ClientContext.get_current();
    var collWeb = context.get_web().get_webs();
    var webCreationInfo = new SP.WebCreationInformation();
    webCreationInfo.set_title('TestSite');
    webCreationInfo.set_description('Description of new Web site...');
    webCreationInfo.set_language(1033);
    webCreationInfo.set_webTemplate('STS#0');
    webCreationInfo.set_url('TestSite');
    webCreationInfo.set_useSamePermissionsAsParentSite(false);
    var oNewWebsite = collWeb.add(webCreationInfo);
    context.load(oNewWebsite);
    context.executeQueryAsync(Onsuccess, onfail);
    function Onsuccess() {
    dummy(context, oNewWebsite);
    function onfail(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function dummy(context,oNewWebsite)
    var strMasterPageUrl = '/_catalogs/masterpage/Test.master';
    oNewWebsite.set_masterUrl(strMasterPageUrl);
    oNewWebsite.set_customMasterUrl(strMasterPageUrl);
    oNewWebsite.update();
    context.executeQueryAsync(Onsuccess1, onfail1);
    function Onsuccess1() {
    alert("Done");
    function onfail1(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    Please help.
    Thanks,
    Sachin

    The issue is coming because the scope of context and oNewWebsite is not available in your success method. Try to modify the code as below and see if that helps.
    $(document).ready(function () {
    ExecuteOrDelayUntilScriptLoaded(createSite, "sp.js"); //This is used to ensure until sp.js is loaded, createSite will not be executed.
    var context = null;
    var oNewWebsite = null;
    function createSite() {
    context = SP.ClientContext.get_current();
    var collWeb = context.get_web().get_webs();
    var webCreationInfo = new SP.WebCreationInformation();
    webCreationInfo.set_title('TestSite');
    webCreationInfo.set_description('Description of new Web site...');
    webCreationInfo.set_language(1033);
    webCreationInfo.set_webTemplate('STS#0');
    webCreationInfo.set_url('TestSite');
    webCreationInfo.set_useSamePermissionsAsParentSite(false);
    oNewWebsite = collWeb.add(webCreationInfo);
    context.load(oNewWebsite);
    context.executeQueryAsync(Onsuccess, onfail);
    function Onsuccess() {
    dummy(context, oNewWebsite);
    function onfail(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function dummy(context,oNewWebsite)
    var strMasterPageUrl = '/_catalogs/masterpage/Test.master';
    oNewWebsite.set_masterUrl(strMasterPageUrl);
    oNewWebsite.set_customMasterUrl(strMasterPageUrl);
    oNewWebsite.update();
    context.executeQueryAsync(Onsuccess1, onfail1);
    function Onsuccess1() {
    alert("Done");
    function onfail1(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    The other way is to use this.context and this.oNewWebsite. To see how you can modify your code have a look at the following link.
    http://msdn.microsoft.com/en-us/library/office/jj163201%28v=office.15%29.aspx
    Geetanjali Arora | My blogs |

  • Setting PREFIX for DIMENSION_TABLE using OMB Scripting

    I'm trying all day to find a way to set PREFIX for DIMENSION_TABLE
    using OMB script without success and I'm a little confused now.
    First of all Scripting Reference does not mention about PREFIX
    property so maybe there is no way to achieve what I want. Consequently
    it would mean that GUI interface is "stronger" than OMB Scripting.
    Secondly I don't understand why when I issue following command in OMB
    Plus:
    OMBDESCRIBE CLASS_DEFINITION 'DIMENSION_TABLE' GET PROPERTY_DEFINITIONS
    I get nothing (empty output, no errors) and when I execute:
    OMBDESCRIBE CLASS_DEFINITION 'DIMENSION_TABLE' GET PROPERTIES
    (STEREOTYPE, IS_ABSTRACT, DESCRIPTION)
    I get:
    class false {}
    First result suggests that there are no properties for DIMENSION_TABLE
    and second proves that there are at least three.
    Is there some type/properties inheritance here?
    Can someone explain me this and tell how can I:
    1. find all valid types (I would like to set prefix for LEVEL,
    LEVEL_ATTRIBUTE, etc. too)
    2. find all properties for these types
    regards
    Tomasz Gajewski

    You misunderstood me. I don't want to rename DIMENSION_TABLE. When creating DIMENSION_TABLE with gui I set NAME and PREFIX for each DIMENSION_TABLE and LEVEL.
    PREFIX for level is used later during deploy to distinguish attributes from different levels.
    Example. If I have a level named LEVEL_NAME with prefix LN and an attribute of it named ID than table generated for this contains column LN_ID.
    When I create DIMENSION_TABLE using OMB Script prefix is set same as name (default behaviour that I can't change) and it is to long to use.
    Scripting Reference doesn't mention about PREFIX property. Should I assume that the only way to change these values are through OWB GUI?
    regards
    Tomasz Gajewski

  • Creating user using GPP after MS14-025

    Hi all,
    I've been using GPP for creating local users but after MS14-025 update and removing cpassword from Groups.xml I get an  error about new user password does not meet the password policy requirements. Do you know how to get it? I've created an script for
    setting the password but I need to use the GPP for creating the user, not create it using the script
    Thanks

    Hi,
    You can see how the MS14-025 work from the below article:
    MS14-025: An Update for Group Policy Preferences
    http://blogs.technet.com/b/srd/archive/2014/05/13/ms14-025-an-update-for-group-policy-preferences.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Creating Tables with a Script

    I am trying to create tables using a script, but it seems like consecutive statments in the script will not execute --- can anyone tell me what syntax I need to use?
    Here is my script - I am using SQL-Plus:
    CREATE TABLE regions
    ( region_id NUMBER
    CONSTRAINT region_id_nn NOT NULL
    , region_name VARCHAR2(25)
    CREATE TABLE countries
    ( country_id CHAR(2)
    CONSTRAINT country_id_nn NOT NULL
    , country_name VARCHAR2(40)
    , region_id NUMBER
    , CONSTRAINT country_c_id_pk
         PRIMARY KEY (country_id)
    ORGANIZATION INDEX
    Here is what I key in:
    SQL> get c:\oracle\test.txt
    Here is the error that comes out:
    1 CREATE TABLE regions
    2 ( region_id NUMBER
    3 CONSTRAINT region_id_nn NOT NULL
    4 , region_name VARCHAR2(25)
    5 )
    6 CREATE TABLE countries
    7 ( country_id CHAR(2)
    8 CONSTRAINT country_id_nn NOT NULL
    9 , country_name VARCHAR2(40)
    10 , region_id NUMBER
    11 , CONSTRAINT country_c_id_pk
    12 PRIMARY KEY (country_id)
    13 )
    14* ORGANIZATION INDEX
    15 run;
    CREATE TABLE countries
    ERROR at line 6:
    ORA-00922: missing or invalid option
    If I trim down the script - to just 1 create table command, no semi-colons, it works:
    Script:
    CREATE TABLE regions
    ( region_id NUMBER
    CONSTRAINT region_id_nn NOT NULL
    , region_name VARCHAR2(25)
    Key in:
    SQL> get c:\oracle\test.txt
    1 CREATE TABLE regions
    2 ( region_id NUMBER
    3 CONSTRAINT region_id_nn NOT NULL
    4 , region_name VARCHAR2(25)
    5* )
    SQL> run;
    Recieve:
    1 CREATE TABLE regions
    2 ( region_id NUMBER
    3 CONSTRAINT region_id_nn NOT NULL
    4 , region_name VARCHAR2(25)
    5* )
    Table created.
    adding a semicolon between the create table statements doesn't solve this issue - does anyone have any ideas?
    Thanks,
    -Tom

    try using a file that ends with .sql instead of .txt
    and use a semi -colon
    CREATE TABLE regions
    ( region_id NUMBER
    CONSTRAINT region_id_nn NOT NULL
    , region_name VARCHAR2(25)
    CREATE TABLE countries
    ( country_id CHAR(2)
    CONSTRAINT country_id_nn NOT NULL
    , country_name VARCHAR2(40)
    , region_id NUMBER
    , CONSTRAINT country_c_id_pk
    PRIMARY KEY (country_id)
    Consider using a spool file so you can check for errors at the end.
    Or you can use a template like this:
    -- 0 ---------------------------------------------------------------------------------------------
    PROMPT
    PROMPT REGIONS
    PROMPT
    ---------------------------------------------------------------------------------------------------|
    -- CREATE SECTION-------------------------------------------------------------------------------|
    ---------------------------------------------------------------------------------------------------|
    CREATE TABLE REGIONS
    ( REGION_ID NUMBER
    CONSTRAINT REGION_ID_NN NOT NULL
    , REGION_NAME VARCHAR2(25)
    -- INDEXES ----------------------------------------------------------------------------------------
    -- SYNONYMS ---------------------------------------------------------------------------------------
    CREATE OR REPLACE PUBLIC SYNONYM REGIONS FOR REGIONS ;
    -- GRANTS -----------------------------------------------------------------------------------------
    GRANT SELECT ON REGIONS TO SCOTT;

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • Question about creating new tables using SQL script in WebLogic Server

    Hi,
    I am new to WebLogic and I am following a book Java EE Development with Eclipse published by PACKT Publishing to learn
    Java EE.  I have installed Oracle Enterprise Pack for Eclipse on the PC and I am able to log into the WebLogic Server Administration Console
    and set up a Data Source.  However the next step is to create tables for the database.  The book says that the tables can be created using
    SQL script run from the SQL command line.
    I cannot see any way of inputting SQL script into the WebLogic Server Admistration Console.  Aslo there is no SQL Command line in DOS.
    Thanks  for your help.
    Brian.

    Sounds like you are to run the scripts provided by a tutorial to create the tables, right?  In that case, you may need to install an Oracle client to connect to your database.  The client is automatically installed with the database, so if you have access to the server that hosts the database, you should be able to run SQLplus from there.
    As far as I know, there is no way to run a script from the Admin Console.  I could be wrong, however.

  • Create document set using ECMA Script

    Hi,
    I want to create a document set in SharePoint 2010 document library where i have already included document set content type.
    Is there any way to create a document set using ECMA Script?? If yes, then please provide the sample code for this...
    Thanks.
    -Prashant

    Hi Prashant,
    Although this post is aimed at SP 2013 and the App model, it should give you the object model references you need to complete your goal:
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    In particular the following function should be of use:
    function CreateDocumentSet() {
    var ctx = new SP.ClientContext("http://yourSharePointSite");
    var parentFolder;
    var newDocSetName = $('#txtGetDocumentSetName').val();
    var docSetContentTypeID = "0x0120D520";
    var web = ctx.get_web();
    var list = web.get_lists().getByTitle('DocSetLibrary');
    ctx.load(list);
    parentFolder = list.get_rootFolder();
    ctx.load(parentFolder);
    var docsetContentType = web.get_contentTypes().getById(docSetContentTypeID);
    ctx.load(docsetContentType);
    ctx.executeQueryAsync(function () {
    var isCreated = SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
    ctx.executeQueryAsync(SuccessHandler('Document Set creation successful'), FailureHandler("Document Set creation failed"));
    }, FailureHandler("Folder loading failed"));
    ctx.add_requestSucceeded(function () {
    $('#txtGetDocumentSetName').val('');
    alert('Request Succeeded');
    ctx.add_requestFailed(function (sender, args) {
    alert('Request failed: ' + args.get_message());
    // Failure Message Handler
    function FailureHandler(message) {
    return function (sender, args) {
    alert(message + ": " + args.get_message());
    // Success Message Handler
    function SuccessHandler(message) {
    return function () {
    alert(message);
    Keith Tuomi | Twitter: @itgroove_keith | Blog:
    http://yalla.itgroove.net
    Please click "Propose As Answer" if a post solves the problem or "Vote As Helpful" if a post has been useful to you.

Maybe you are looking for

  • Run time error while logging from a client

    hi all, My server is connected to 10 clients. out of that 2 clients are suddenly showing error while logging. Microsoft visual studio C++(error window) run tme error debug error c:/program files/sap/sap business one/sapbusiness one.exe This is the er

  • ESS Team Calendar Displaying Work Schedule

    Hi, Does anyone know of any BADI's etc that will allow me to display a persons workschedule on the team calendar? E.g. If I only work a Monday, Wednesday & Friday I want the calendar to grey out Tuesday and Thursday. All help rewarded! Tom

  • How to: Netflow on a L3 Switch WS-C3560X-48P

    Hello Community, I want to use netflow on our l3 switches. But my configurations dont work. What is my mistake?  Modell: WS-C3560X-48P Software Version: 15.0(1)SE3 My Config: interface vlan 250  ip flow monitor Monitor-FNF input  ip flow monitor Moni

  • Playing subtitles in a Quick Time Movie.

    Hi, I have recently installed perian on to my MacBook Pro as I want to play .srt files (subtitles) while the movie was playing. Problem is that I cannot seem to get ot to work. can anyone please suggest a reason why it won't work or how to make it wo

  • E63 Software Update (UK) problem

    Hello I received my E63 last Wednesday, it set up very easily including connecting to my home wi-fi. I was unable to connect to the internet via Orange (PAYG) after calling them & visiting one of their shops I went to my local Nokia repairer (Fonebox