Adding an IF statment?
I have the following (functioning) script, which applies a FSRM quota template to a user wihtin the specified group.
I receive an error if the quota exists - how do I stop this behavior? (IF statement?)
If quota? dir? exists -exit? skip? --not sure about the command. I only want it to apply if it does NOT exist.
$group = [adsi]"LDAP://CN=<blank>"
$groupSearcher = New-Object DirectoryServices.DirectorySearcher($group)
$groupSearcher.PageSize = 1000
$results = $groupSearcher.FindOne()
#$results.properties.item("member")
$members = $results.properties.item("member")
foreach ($member in $members) {
$user = [adsi]"LDAP://$($member)"
$userSearcher = New-Object DirectoryServices.DirectorySearcher($user)
$userSearcher.PageSize = 1
$results = $userSearcher.FindOne()
$sAMAccountNames = $sAMAccountNames + $results.properties.item("sAMAccountName")
foreach ($sAMAccountName in $sAMAccountNames) {
Write-Host "Quotas being modified for $($sAMAccountName)"
New-FsrmQuota -Path "E:\Users\$($sAMAccountName)" -Template:"UserSQ"
Hi,
You could turn this into a function and then pass in the group name and the template, but this is a lazier way to do this:
Get-ADGroupMember -Identity 'GroupName' | ForEach {
If (!(Get-FsrmQuota -Path "E:\Users\$($_.SamAccountName)" -ErrorAction SilentlyContinue)) {
Write-Host "Quotas being modified for $($_.SamAccountName)"
New-FsrmQuota -Path "E:\Users\$($_.SamAccountName)" -Template:"UserSQ"
Else {
Write-Host "Quota was already set for $($_.SamAccountName)"
Get-ADGroupMember -Identity 'OtherGroupName' | ForEach {
If (!(Get-FsrmQuota -Path "E:\Users\$($_.SamAccountName)" -ErrorAction SilentlyContinue)) {
Write-Host "Quotas being modified for $($_.SamAccountName)"
New-FsrmQuota -Path "E:\Users\$($_.SamAccountName)" -Template:"OtherUserTemplate"
Else {
Write-Host "Quota was already set for $($_.SamAccountName)"
Get-ADGroupMember -Identity 'SomeOtherGroupName' | ForEach {
If (!(Get-FsrmQuota -Path "E:\Users\$($_.SamAccountName)" -ErrorAction SilentlyContinue)) {
Write-Host "Quotas being modified for $($_.SamAccountName)"
New-FsrmQuota -Path "E:\Users\$($_.SamAccountName)" -Template:"YouGetTheIdea"
Else {
Write-Host "Quota was already set for $($_.SamAccountName)"
Just create 8 blocks and go from there. I'm using Get-ADGroupMember from the AD module as opposed to the ADSI method you were using to get the group members. It's just a tad shorter. =]
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)
Similar Messages
-
How to make use of a global internal table in SAP BW during transfer rules
HI friends,
I am ABAP consultant working on some APO info cubes. I have an issue during the upload of planning area data into APO info cube.
Please help.
I am using a transfer routine to find the TECHWEEK from a data base table ZGC_CALWEEK based on the on the calender month and calender week.
Code I am writing is like below.
* FORM COMPUTE_/BIC/ZCALWEEK
* Compute value of InfoObject ZCALWEEK
* in communication structure /BIC/CSZT6DPPA
* Technical properties:
* field name = /BIC/ZCALWEEK
* data element = /BIC/OIZCALWEEK
* data type = NUMC
* length = 000006
* decimals = 000000
* ABAP type = N
* ABAP length = 000006
* reference field =
* Parameters:
* --> RECORD_NO Record number
* --> TRAN_STRUCTURE Transfer structure
* <-- RESULT Return value of InfoObject
* <-> G_T_ERRORLOG Error log
* <-- RETURNCODE Return code (to skip one record)
* <-- ABORT Abort code (to skip whole data package)
FORM COMPUTE_/BIC/ZCALWEEK
USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BIC/OIZCALWEEK
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
*$*$ begin of routine - insert your code only below this line *-*
* DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
DATA: LV_WEEK TYPE ZGC_CALWEEK-APOWEEK,
LV_MONTH TYPE ZGC_CALWEEK-APOMONTH,
LV_TECH_WEEK TYPE ZGC_CALWEEK-TECHWEEK.
LV_WEEK = TRAN_STRUCTURE-CALWEEK.
LV_MONTH = TRAN_STRUCTURE-CALMONTH.
SELECT SINGLE TECHWEEK INTO LV_TECH_WEEK
FROM ZGC_CALWEEK CLIENT SPECIFIED
WHERE MANDT = SY-MANDT
AND APOWEEK = LV_WEEK
AND APOMONTH = LV_MONTH.
IF SY-SUBRC IS INITIAL.
RESULT = LV_TECH_WEEK.
ELSE.
RETURNCODE = 1.
ENDIF.
*$*$ end of routine - insert your code only before this line *-*
ENDFORM.
There are more than 50-80 million records that wil be transferred from planning area to info cube. The select statment is giving pathetic performance as this has to run 50-80 million times.
After adding the select statment to find the TECHWEEK it is taking 4 times the time that used to take before writing the select statment.
Is there a way that I can first fetch the data from ZGC_CALWEEK to one internal table and that internal table can be used using read statment during the transfer routine instead of writing select statement here.
Please help in this case?Hi Ashutosh,
Thanks for the reply,
The structure of the ZGC_CALWEEK is as below. I have already created a secondary index on the table for this table for the fields APO WEEK and APO MONTH. This didn't help much on the performance.
I am also planning to keep the ZGC_CALWEEK database table to be fully buffered and this may definitely improve the performance but I need to reduce the data base hits as less as possible.
MANDT MANDT CLNT 3 0 Client
TECHWEEK ZTECHWEEK NUMC 6 0 Technical Week
FROMDATE_TECH DATUM DATS 8 0 Date
TODATE_TECH DATUM DATS 8 0 Date
APOWEEK /BI0/OICALWEEK NUMC 6 0 Calendar year / week
FROMDATE_APO DATUM DATS 8 0 Date
TODATE_APO DATUM DATS 8 0 Date
APOMONTH /BI0/OICALMONTH NUMC 6 0 Calendar year/month
The table ZGC_CALWEEK is in APO system, where the transfer rules are being executed.
As you mentioned START ROUTINE, In the start routine Can I create an internal table let's say GT_CALWEEK with structure ZGC_CALWEEK and pull all the records (I have a max of 2000 records in this table) from ZGC_CALWEEK to GT_CALWEEK and Can I used the same internal table GT_CALWEEK in the transfer routine to read the TECHWEEK from internal table.
Thank you very much again for you reply. Any help regarding this would be greatly appreciated.
Best regards,
Siva -
Debuging Event Handler OIM 11g
Hi experts
I have built the event handler and its able to set email of the end user as [email protected] after post process. Fortunatly i could do this at first shot after following the link on the oracle meta link.
But i could not debug the eventhandler class file for any additional changes. though i have added the SOP statments i cud not see anythin in the OIM Diagnostic logs.
can any one help me where i can find the trace out put of the SOP's i've set in the event handler.. is it in the WLS logs or do i need to set the OIM log level to finest. im lil confused
this is the first time im dealing with oim event handlers.Hi ,
By default SOP statments prints on OIM logs.
You can generate Custom Log file in OIM 11g for event handler.
1.Open logging.xml from <OIM Domain>/config/fmwconfig/servers/<OIM Server>
2.In the <log_handlers> tag add entry for custom handler
3.Add entry for the custom logger under <loggers> tag
4.Restart the OIM server
For more details, please see link http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/log.htm#CEGEAGIB .
Thanks,
Pradeep
Edited by: Pradeep Khopade on Jan 30, 2012 10:23 PM
Edited by: Pradeep Khopade on Jan 30, 2012 10:24 PM -
Resource problem...what am I doing wrong?
I have a few jpg images in a jar file. They are T0.jpg, T1.jpg, and t2.jpg.
They are located under the directory
C:\applettest\com\mycompany\myapplet
From inside of the applettest directory I do:
jar cvf im1.jar *.*
That creates a jar with the images in it. All well and good.
In my JApplet (called OraApplet) I have a package statement that looks like this:
package com.mycompany.myapplet
Inside the OraApplet I do this:
InputStream ins = this.getClass().getResourceAsStream("T0.jpg");
When I do that, ins is null.
I have the im1.jar put into the classpath correctly and EVERYTHING worked in another applet I had that was IDENTICAL except it did not have the package statment, and the images were in the top (applettest) directory. In other words, when I first jarred up the images, they were not under com\mycompany\myapplet.
My HTML file that runs this thing looks like this:
<!DOCTYPE HTML <body>
<CENTER>
Orametrix 2D image viewer...phase 0.001
<p>
<APPLET CODEBASE="http://localhost:8080/oraapplet/applets
"CODE="com.mycompany.myapplet.OraApplet.class" archive="im1.jar" width=350 height=350>
<param name="imagesource" value="im1.jar">
<param name="imagenames" value="T0.jpg,T1.jpg,T2.jpg,T3.jpg,T4.jpg">
<param name="cycles" value="10">
<param name="pause" value="200">
<param name="imagesizes" value="350x350,350x350,350x350,450x350,450x350">
</APPLET>
</p>
</CENTER>
</BODY>
</html>
What in the world am I doing wrong?
Should my jar file contain the com.mycompany.myapplet structure?
Please help me out here. This is driving me nuts as it worked just fine before I added the package statment.Got it.
For some strange reason, when the package statement wasn't there, the capitalization of the extention (.jpg, .JPG) didn't matter, but as soon as the package statement was added, then suddenly it mattered!
So, I changed the extension to be all lower case and it worked. -
Hi all,
I have an internal table consisting of three fields. I want to populate the internal table using a select statment for where I sum all records returned by material. Here is my query without the select:
SELECT PRINS PRLAB PREIN
INTO TABLE GT_MSPR_FIELDS
FROM MSPR
FOR ALL ENTRIES IN GT_SUPPLY_DEMAND
WHERE MATNR EQ GT_SUPPLY_DEMAND-MATNR
AND WERKS EQ GT_SUPPLY_DEMAND-WERKS
AND PSPNR IN S_PSPNR.
I tried adding a SUM statment to each field but the select poops. Is there a way to do this?
regards,
MatHi Bjorn,
I have an itab that includes matnr prins prlab prein
SELECT MATNR sum(PRINS) sum(PRLAB) sum(PREIN)
INTO TABLE GT_MSPR_FIELDS
FROM MSPR
FOR ALL ENTRIES IN GT_SUPPLY_DEMAND
WHERE MATNR EQ GT_SUPPLY_DEMAND-MATNR
AND WERKS EQ GT_SUPPLY_DEMAND-WERKS
AND PSPNR IN S_PSPNR.
that is what I had in mind....thanks much. -
Why does not the data get saved into the Database
Please check if there is any thing wrong with my code here. Why cant i save the data in to my database. when i used the same things in other places it works.
guys i have copied a portion of the code here. right now i have commented few areas to not give me any errors on the whole program
Please check why cant i save the data into the database.
i have created a seperate class for database connection Utilities
void saveData()
//Utilities ut = new Utilities();
//connection = ut.getConnection();
//ResultSet resultSet;
// JourneyID = ut.getResults(qryJourneyID);
strJourneyID = txtJourneyID.getText();
System.out.println("++++++++++++++++++++++++"+strJourneyID);
strVehicleID = (String)comboVehicleID.getSelectedItem();
System.out.println("++++++++++++++++++++++++"+strVehicleID);
strDriverID = (String)comboDvrID.getSelectedItem();
System.out.println("++++++++++++++++++++++++"+strDriverID);
strStartDateTime = txtDateTime.getText();
System.out.println("++++++++++++++++++++++++"+strStartDateTime);
int a = JOptionPane.showConfirmDialog (null, "Are u sure you want to save the changes?", "WARNING!", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
if (a == 0)
if(NEW)// new is a boolean value
//ADDING NEW DATA STATMENT
System.out.println("INSERTING NEW ROW IN THE TABLE...");
try
String insert ="INSERT INTO Job VALUES (" + "'" + strJourneyID + "'"+
", '"+ strVehicleID + "',"
+"'"+ strDriverID +"',"
+ "'"+ strStartDateTime +"')";
System.out.println("STATEMENT IS " + insert);
// InsertStmt = connection.createStatement();
// InsertStmt.executeUpdate(insert);
JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
catch (Exception e)
e.printStackTrace();
JOptionPane.showMessageDialog(null, "Problem encountered while adding new data");
else
JOptionPane.showMessageDialog(null, "it is supposed to save data");
/*try
String ChangeRecord = "UPDATE Job SET " +
"JourneyID = '" + strJourneyID+ "'"+
"VehicleID = '" + strVehicleID+"',"+
"DriverID = '"+strDriverID+"'," +
"StartDateTime='" + strStartDateTime+ "'";//syntax error???
System.out.println(""+ ChangeRecord);
UpdateStmt = connection.createStatement();//just added
UpdateStmt.executeUpdate(ChangeRecord);
JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
catch (Exception change_exception)
change_exception.printStackTrace();
JOptionPane.showMessageDialog (null, "Problem encountered while updating","TIS: Problem encountered",JOptionPane.ERROR_MESSAGE);
else
JOptionPane.showMessageDialog(null, "You chose to cancel the operation","Operation cancelled", JOptionPane.INFORMATION_MESSAGE);
}Yes you have commented all the code that update the
database so how can it update the database.
By the way for inserting dont use Statement use
PrepairedStatement
by the way next time please post codes in code tagsMan i have commented it becaues it if i dont comment it givens me errors. like cannot find variable and i dont understand how to use the code button. whereever i click the code button it displays the at the end of the code! what to do?
connection = ut.getConnection();
ResultSet resultSet;
UpdateStmt = connection.createStatement();
UpdateStmt = connection.createStatement();
UpdateStmt.executeUpdate(ChangeRecord);
please check it once again
void saveData()
Utilities ut = new Utilities();
connection = ut.getConnection();
ResultSet resultSet;
// JourneyID = ut.getResults(qryJourneyID);
strJourneyID = txtJourneyID.getText();
System.out.println("++++++++++++++++++++++++"+strJourneyID);
strVehicleID = (String)comboVehicleID.getSelectedItem();
System.out.println("++++++++++++++++++++++++"+strVehicleID);
strDriverID = (String)comboDvrID.getSelectedItem();
System.out.println("++++++++++++++++++++++++"+strDriverID);
strStartDateTime = txtDateTime.getText();
System.out.println("++++++++++++++++++++++++"+strStartDateTime);
int a = JOptionPane.showConfirmDialog (null, "Are u sure you want to save the changes?", "WARNING!", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
if (a == 0)
if(NEW)
//ADDING NEW DATA STATMENT
System.out.println("INSERTING NEW ROW IN THE TABLE...");
try
String insert ="INSERT INTO Job VALUES (" + "'" + strJourneyID + "'"+
", '"+ strVehicleID + "',"
+"'"+ strDriverID +"',"
+ "'"+ strStartDateTime +"')";
System.out.println("STATEMENT IS " + insert);
// InsertStmt = connection.createStatement();
// InsertStmt.executeUpdate(insert);
JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
catch (Exception e)
e.printStackTrace();
JOptionPane.showMessageDialog(null, "Problem encountered while adding new data");
else
JOptionPane.showMessageDialog(null, "it is supposed to save data");
try
String ChangeRecord = "UPDATE Job SET " +
"JourneyID = '" + strJourneyID+ "'"+
"VehicleID = '" + strVehicleID+"',"+
"DriverID = '"+strDriverID+"'," +
"StartDateTime='" + strStartDateTime+ "'";//syntax error???
System.out.println(""+ ChangeRecord);
UpdateStmt = connection.createStatement();//just added
UpdateStmt.executeUpdate(ChangeRecord);
JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
catch (Exception change_exception)
change_exception.printStackTrace();
JOptionPane.showMessageDialog (null, "Problem encountered while updating","TIS: Problem encountered",JOptionPane.ERROR_MESSAGE);
else
JOptionPane.showMessageDialog(null, "You chose to cancel the operation","Operation cancelled", JOptionPane.INFORMATION_MESSAGE);
} -
AddRequestObject has been deprecated while adding a resouce to a request
Hi Friends,
I have created a schedule task to create a request and to add users to it and also to provision a resource to the user. It is creating a request and adding a user successfully.
But while adding resource to the request by using the correct request key and object key, I am getting a compilation error.
This is the statment I am giving "requestIntf.addRequestObject(reqkey,objkey);"
I am getting the compilation error as "addRequestObkect(reqkey, objkey) in Thor.API.Operations.tcRequestOperationsIntf has been deprecated"
Did research in google but did not find anything. Can you please let me know what I am doing wrong.Using API : - you can use tcFormInstanceOperationsIntf api method setProcessFormData
setProcessFormData
public void setProcessFormData(long plProcessInstanceKey,
java.util.Map phAttributeList)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcInvalidValueException,
Thor.API.Exceptions.tcNotAtomicProcessException,
Thor.API.Exceptions.tcFormNotFoundException,
Thor.API.Exceptions.tcRequiredDataMissingException,
Thor.API.Exceptions.tcProcessNotFoundException,
tcAPIException
Sets the process data associated with an instance of a process in the system. If the process data already exists, then it updates the data with the specified values. In the case of a first-time save, all the required data must be provided. In the case of subsequent saves, only data being updated need be provided.
Parameters:
plProcessInstanceKey - The key of the process instance in the system.
phAttributeList - An array of tcMapping objects, each used to specify the attribute name-value pairs to be used to save data to the form
Throws:
tcAPIException - an error code of DOBJ.USR_PASSWORD_DOES_NOT_MATCH_POLICY might be set within this exception. If that's the case, one or many password policy rules were not met for password field in the form.
tcInvalidValueException
tcNotAtomicProcessException
tcFormNotFoundException
tcRequiredDataMissingException
tcProcessNotFoundException -
More than 1 row is added but not!!!!
The basic problem is that I execute the class that contains the code below multiple times, therefore, I assume that the contents of the prepared statement should be added to the database multiple times.
This is not happening as when I open the Access database, the contents of the prepared statement appear only once ie; there is only 1 row in the database.
What is even more confusing is that when the code is executed, if you look at the while loop in the code fragment, the print statements in this while loop are actually printing 9 print statments, this means that the while loop must be "looping" through the result set 9 times (the amount of times the code has been executed so far), which means that there must be 9 rows in the database for this to happen!!!! So where is this data going?? Any ideas? It must be going to the database.
try {
theConnection = DriverManager.getConnection(url,"foy","foy");
theConnection.setAutoCommit(false);
//idea is that the Result Set is scrollable (more than once and so if it scrolled for information and
//nothing is found, then it can be scrolled again and find other matching images that are less accurate
//to the query.
stmt = theConnection.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
//A "pre-compiled SQL statement that can be sent to the database.
//It is pre-compiled as the statements below will be executed many times on the database ie; when adding images.
PreparedStatement ps = theConnection.prepareStatement("insert into Table2 " +"values(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
ps.setInt(1, 2);
ps.setInt(2, 3);
ps.setString(3, "Jack");
ps.setString(4, "Fred");
ps.setString(5, "Bill");
ps.setString(6, "Sally");
ps.setString(7, "liverpool");
ps.setString(8, "holiday");
ps.setString(9, "christmas");
ps.setString(10, "december");
ps.setString(11, "nearby");
ps.executeUpdate(); //add the actual data to the database
theConnection.commit();
theConnection.setAutoCommit(true);
ResultSet uprs = stmt.executeQuery("SELECT * FROM Table2");//select all information from Table2
System.out.println("Table Table2 after insertion:");
ResultSetMetaData rsmd = uprs.getMetaData();
int numberOfColumns = rsmd.getColumnCount();
System.out.println("Total Columns " + numberOfColumns);
while (uprs.next()==true) //while there are more rows in the result set
int id = uprs.getInt("IMAGEID");
int total = uprs.getInt("TOTALPEOPLE");
System.out.print("ID " + id);
System.out.println("Total People " + total);
//It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.
uprs.close(); //close the result set object as only one can be open at a time, may use more yet
stmt.close();
theConnection.close();
} //end of try statement
Such an ugly looking post ... so hard to read.
Your problem is possibly due to the following:
1) AutoCommit is off
2) the same record is being added over and over again and the database contains no primary or unique key
;o)
V.V. -
I'm using Netbeans IDE 3.4 and trying to build SQL statments for MySQL DB.
For that reason I need to concate the char " or ' to my SQL string . for example I need to create the string:
SELECT * FROM user WHERE username = "test".
I use variables to get the username from other function and I need to create that statment, I tried to run the following code:
SELECT * FROM user WHERE username =" + '\"' + Username + '\"'
and also tried to run:
SELECT * FROM user WHERE username =" + "\"" + Username + "\""
but I get always the following string:
SELECT * FROM user WHERE username =\"test\" , which of course is not OK.
I tried to replace the " with ' but with no luck.
Can someone help ?
Many Thanks...String sql = "SELECT * FROM user WHERE username = '" + username + "'"
single/double double/single/double
You will have problems where your username is something like 'O'Neil' where you will have to escape the single quote within the username by adding an additional single quote 'O''Neil'
single/single -
Adding fields to an existing table without dropping it
Hi Guys,
Just wondering if anyone can tell me if it's possible to write an SQL statement to add extra fields to an existing table without dropping it then re-creating and also what SQL would be needed. The added fields will be part of an exclusive arc, so can contain NULL values.
Any help would be much appreciated.
AntonHi,
You can Use the ALTER TABLE statment.
like consider emp table having 3 columns empno,enmae,deptno.
now u want to add sal and mgr columns.
u can do it like this
ALTER TABLE ADD ((sal NUMBER(5,2),(mgr NUMBER));
If u want to modify the column datatype
u can use ALTER TABLE MODIFY (<column datatype>............);
Trinath Somanchi,
Hyderabad. -
Adding mod_ssl to Sun Apache
Hi everyone,
We're using the stock Sun Apache (saves us time on rolling our own version and maintaining it) on our Solaris 9 servers. I've recently created a PHP-package that can be installed into the Sun Apache. Now I need to do the same for mod_ssl. Sun has included EAPI in their Apache distribution, and this should be possible. However, the only documents I can find on the web all assume that one patches the Apache sourcecode in order to enable SSL. How could one add the mod_ssl functionality to Sun Apache without recompiling Apache itself?
Regards, Paul Boven.I have tried the advice above but I am getting an error message when I try to start the httpd web server. The post I made to a newsgroup, copied below, details the problem. Any help would be greatly appreciated.
---Newsgroup Post---
I have been following the instructions for adding mod_ssl to the integrated httpd server in Solaris that was posted here last year (a copy is included below). I am attempting to install mod_ssl onto a Solaris 9 system and I am using the relevant version of mod_ssl. It is my preferance to do it this way, retaining the included version of httpd, rather than to install the web server from another source.
Anyway, after following the instructions below I have attepted to launch the htppd server and receive the following error message:
Syntax error on line 252 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libssl.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /usr/apache/libexec/libssl.so: symbol __umoddi3: referenced symbol not found
./apachectl start: httpd could not be started
Can anyone tell me how I might resolve this problem?
Regards,
Bernard Lineham
---Previous Message---
Well, first of all, why are you using the Sun Freeware apache? Solaris 8
ships with apache as well, and if you're up-to-date with your patches,
you will have 1.3.26 and Sun will take care of backporting any security
issues.
Here is my procedure for adding SSL support to the Sun Apache:
1. Make sure you have the the SUNWapchr and SUNWapchu packages installed.
2. Make sure you have the latest Apache patch from Sun installed. For
Solaris 8, that would be patch number 109234 (get the highest revision).
3. You need to have OpenSSl installed.
4. Now unpack the modssl-distribution (you will need the one that goes
with your apache-version, in this case 2.8.9)
5. ./configure with-apxs=/usr/apache/bin/apxs with-ssl=SYSTEM
6. You should patch line 23 of pkg.sslmod/Makefile to read:
SSL_LDFLAGS=-L$(SSL_LIBDIR) -R$(SSL_LIBDIR)
This ensures that your modssl will be able to find openssl later on.
7. make
You could now take the file pkg.sslmod/libssl.so and dump it in
/usr/apache/libexec, then add the appropriate statements to your
httpd.conf. But for extra bonus points, we're going to make a package
instead.
Create a file called 'prototype' in the mod-ssl directory, with these
contents:
f none /usr/apache/libexec/libssl.so=pkg.sslmod/libssl.so 755 root other
i ./pkginfo
Create a file called 'pkginfo' in the mod-ssl directory with these contents:
PKG=Apmodssl
NAME=Apache modssl
ARCH=sparc
VERSION=2.8.9
CATEGORY=system
VENDOR=none
[email protected]
CLASSES=none
(you might want to change the 'email' setting
Now run 'pkgmk -o' and you will find your new package in /var/spool/pkg.
To install (only now do we need root permissions):
pkgadd Apmodssl
If you were to install mod-ssl the 'regular' way (recompiling all of
apache etc) it would modify the httpd.conf for you, quite extensively.
This procedure (on purpose) does not modify the httpd.conf at all.
Some of the changes you will need to activate your modssl are:
Add a 'LoadModule ssl_module libexec/libssl.so'
If your httpd.conf has a ClearModule statement, and then a bunch of
AddModule statements, do as the Romans do and add:
'Addmodule mod_ssl.c'
Add to the type-specifications:
'AddType application/x-x509-ca-cert .crt'
'AddType application/x-pkcs7-crl .crl'
'Listen 80 443'
And a -lot- of SSL specific statments that is a bit much to reproduce
here. Mail me if you get this far. Or run a diff between a pristine
httpd.conf and one mangled by modssl.
Now this all works because Sun explicitly compiled their Apache to work
this way. If you want to know all the flags they used, install the Sun
package SUNWapchS (and reinstall the Apache patch so your sources are up
to date, too). Then look in /usr/src/apache/README.sfw which tells how
they compiled their apache. The procedure above might just as well work
for the SunFreeware version, -if- they compiled with EAPI and
--enable-shared.
Hope this helps a bit.
Regards, Paul Boven. -
Error while adding A/P Credit Memo!
Error while adding A/P Credit Memo..........
'G/L Accounts' (OACT) (ODBC-2028) Message - 131-183
Please advice me .....
Thanks...Hi
Check this thread this may help you.
[Re: AP Invoice - No Matching Account Error]
Regards
Balaji -
Added new field to cube but data not passed from DSO
Hope someone can help.
(BI 7.0) We added new fields into a cube. The fields already existed in the DSO. When we ran the process chain in development for the first time after making this change, we notice that the 'historical' data for these fields is populated in the cube. When we do this in our quality system only new data passed to the cube is updated. In development in the sub-chain DTP request we see all previous requests listed under selections. In quality it is only the latest request. The only difference is that the DeltaInit flag in the DTP request in development is ticked (extraction mode) - but not in quality. Does anyone know whyb this is?hi peter,
Adding fields to cube doesn't affect delta status...The delta DTP should be able to handle delta requests automatically.
I guess in you quality system, the cube already got all requests updated from ODS before you importing the change request. And in develop system none of the requests in ODS were updated before the change.
Regards,
Frank -
HI, i recently just switched to verizon and so far i have loved it. But now im running into an issue and itseems almost impossible to get ahold of anyone via phone for support so im going to try this way.
I am mid way through my month and i have ran out of data. I want to add more to my account so my phone will have internet again. How do i do this? I have added more data packages but that hasnt solved the issue, i still have no internet. I use my phone for work alot and need to have internet the remainder of the month. Can someone please tell me how to go about getting internet on my phone until my plan renews in two weeks.
THank you for any help!huss9,
I am happy to hear that you are loving the service. Welcome to the Verizon Wireless family. But let's get to work on the issue at hand today. With the iPhone can you please go into Settings, General, Scroll to the bottom and tap on Reset, then do reset network settings. This will not delete any of your personal information. All of your pictures, contacts, apps, and music will still be on the phone. Then re-try the network out. Please keep us posted.
KevinR_VZW
Please follow us on Twitter @VZWSupport -
I added my first folder of MP3s and it created a playlist, but didn't show up in the library. When adding a second folder, it didn't show up anywhere. I can do a search for them in the search window, and it finds/plays them, but I want to be able to browse them in my library. These are not MP3s downloaded from iTunes, but are personal files located on my hard drive. Can anyone help?
I have a Dell that's running Windows XP. I have found that itunes is very temperamental. this works most of the time... except on my son's computer that's running Windows Vista.
Go to your library in iTunes. Then go up to file and try one of the options (import, add folder to library, or add file to library).
Adding a folder is the least work. You can add all the files from a folder with one click... if it works. Remember that itunes is temperamental.
If that doesn't work, try adding a file. The problem with that is that you have to go through the whole process for each and every file (song, movie, etc).
Sometimes the only thing that works is to import.
I haven't gotten iTunes to work on my son's computer (Windows Vista).
I can't get support from apple in any way at all! They are good about creating electronics that appeal to us But they are lousy at support. If anyone figures out how to access support (where you can actually contact Apple) please let me know ([email protected]). I've been trying for 6 months.
Maybe you are looking for
-
Select All in ADF RichTable gets exception
One of my ADF tables gets the traceback below when I do a select all (either via ctrl/a or clicking on the row header). Can anyone suggest what I might do to prevent it -- it appears to not involve any custim code [2012-05-23T14:51:40.984-07:00] [oim
-
I messed up a transfer from one iPad to another, How can I fix this?
I was following the instructions I found on osxdaily to transfer using iTunes, but the new iPad didn't register and iTunes wants to delete everything off the old one.
-
Copy/Paste doesn't work in Address Bar and Smart Search Field
Yeah, that's true. Say, I copied a sentence from a site. When I try to paste that sentence into 'Smart Search Field' and press 'Enter'. It doesn't work! Same thing happens when I try to paste a URL into Address Bar/Smart Address Field. What's going o
-
this happens when i try to download an app on my new iPad, iTunes requires me to fill out an online form but when enetring the phone number, iTunes doesn`t recognize any entry format.
-
Getting missed call alert while Data services is ON
dear team, It has been observed in my BB Z30 that whenever i make "ON - Mobile Data services", the person who are calling to me getting "Not Reachable announcement" the same tested by me also by using my another number.I am getting Missed called aler