Oracle Forms (MOSC)

MOSC Banner

Compiling Oracle Forms R12 Remotely using Powershell

edited Sep 6, 2019 5:00AM in Oracle Forms (MOSC) 9 commentsAnswered

I am trying to create a Powershell script to compile Oracle Forms .FMB file. The script works on the Server where R12 is. However, the script does not work outside of it, even if I Remote into the server from Powershell. Below you can find the script that I am trying to use. Any suggestions would be greatly appreciated.

# Set Variables
$Server = "SERVER"
$FormLocation = "C:\FORMS"
$DbUser = "USER"
$DbPass = "PASS"
$DbName = "DBSERVER"
$FormName = "FORM1"
$ModuleType = "FORM"

$ScriptBlockContent1 = { $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") }
$ScriptBlockContent2 =
{
    param($user,$pass,$db,$formName,$moduleType)
    $env:FORMS_PATH = "D:\Oracle\MW\FR_Home\bin"

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center