Systemctl enable suspend@user fails
Hi all,
I'm trying to add a hook that runs on suspend-to-ram, and am following these instructions:
https://wiki.archlinux.org/index.php/Po … leep_hooks
To enable it for user "lefty," I try to run
# systemctl enable suspend@lefty
but I get this error:
Failed to issue method call: No such file or directory
The same thing happens if I try
# systemctl enable suspend@user
I feel like I'm probably missing something. Any idea what it is?
Thanks in advance!
-LeftyAce
You have to create the script...
Use your preferred editor (nano)
copy and paste the script to
/etc/systemd/system/[email protected]
Heads up...you might want to enable the resume service too
I don't know that's what I did
Similar Messages
-
Cannot "systemctl enable root-suspend"
I have recently installed arch and want to run custom scripts on when using systemctl suspend.
I have been following the wiki but when i try "systemctl enable root-suspend" for root/system actions or "systemctl enable suspend@marno && systemctl enable resume@marno" i get an error:
Failed to issue method call: No such file or directory
what am I missing?
systemctl list-unit-files
produces:
UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-sys-fs-binfmt_misc.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount static
systemd-ask-password-console.path static
systemd-ask-password-wall.path static
[email protected] disabled
avahi-daemon.service disabled
avahi-dnsconfd.service disabled
colord.service static
console-getty.service disabled
console-shell.service disabled
cronie.service disabled
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.timedate1.service static
dbus.service static
debug-shell.service disabled
dhcpcd.service disabled
[email protected] disabled
display-manager.service enabled
dmeventd.service static
emergency.service static
fancontrol.service disabled
ftpd.service disabled
[email protected] enabled
gpm.service disabled
healthd.service disabled
[email protected] disabled
ip6tables.service disabled
iptables.service disabled
krb5-kadmind.service disabled
krb5-kdc.service disabled
krb5-kpropd.service disabled
[email protected] static
lm_sensors.service disabled
lvm-monitoring.service disabled
lvmetad.service static
mdadm.service disabled
net-auto-wired.service disabled
net-auto-wireless.service enabled
net-profiles.service disabled
netcfg.service disabled
[email protected] disabled
nscd.service disabled
polkit.service static
[email protected] disabled
quotaon.service static
rescue.service static
[email protected] disabled
[email protected] disabled
sensord.service disabled
[email protected] static
slim.service enabled
systemd-ask-password-console.service static
systemd-ask-password-wall.service static
systemd-binfmt.service static
systemd-fsck-root.service static
[email protected] static
systemd-halt.service static
systemd-hibernate.service static
systemd-hostnamed.service static
systemd-hybrid-sleep.service static
systemd-initctl.service static
systemd-journal-flush.service static
systemd-journal-gatewayd.service static
systemd-journald.service static
systemd-kexec.service static
systemd-localed.service static
systemd-logind.service static
systemd-modules-load.service static
systemd-poweroff.service static
systemd-quotacheck.service static
systemd-random-seed-load.service static
systemd-random-seed-save.service static
systemd-readahead-collect.service disabled
systemd-readahead-done.service static
systemd-readahead-drop.service disabled
systemd-readahead-replay.service disabled
systemd-reboot.service static
systemd-remount-fs.service static
systemd-shutdownd.service static
systemd-suspend.service static
systemd-sysctl.service static
systemd-timedated.service static
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup.service static
systemd-udev-settle.service static
systemd-udev-trigger.service static
systemd-udevd.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp-shutdown.service static
systemd-user-sessions.service static
systemd-vconsole-setup.service static
udisks.service disabled
udisks2.service static
upower.service disabled
usbmuxd.service static
[email protected] static
uuidd.service static
vboxweb.service disabled
[email protected] disabled
[email protected] disabled
wpa_supplicant.service disabled
[email protected] disabled
avahi-daemon.socket disabled
dbus.socket static
dmeventd.socket static
krb5-kpropd.socket disabled
lvmetad.socket static
syslog.socket static
systemd-initctl.socket static
systemd-journal-gatewayd.socket disabled
systemd-journald.socket static
systemd-shutdownd.socket static
systemd-udevd-control.socket static
systemd-udevd-kernel.socket static
uuidd.socket disabled
basic.target static
bluetooth.target static
cryptsetup.target static
ctrl-alt-del.target disabled
default.target disabled
emergency.target static
final.target static
getty.target static
graphical.target disabled
halt.target disabled
hibernate.target static
hybrid-sleep.target static
kexec.target disabled
local-fs-pre.target static
local-fs.target static
mail-transfer-agent.target static
multi-user.target disabled
network.target static
nss-lookup.target static
nss-user-lookup.target static
poweroff.target disabled
printer.target static
reboot.target disabled
remote-fs-pre.target static
remote-fs.target enabled
rescue.target disabled
rpcbind.target static
runlevel0.target disabled
runlevel1.target disabled
runlevel2.target disabled
runlevel3.target disabled
runlevel4.target disabled
runlevel5.target disabled
runlevel6.target disabled
shutdown.target static
sigpwr.target static
sleep.target static
smartcard.target static
sockets.target static
sound.target static
suspend.target static
swap.target static
sysinit.target static
syslog.target static
system-update.target static
time-sync.target static
umount.target static
systemd-readahead-done.timer static
systemd-tmpfiles-clean.timer static
172 unit files listed.
From that list I can see there is no root-suspend.Hahah, I want to assume your being funny (expressing disbelif about someone actually reading the wiki) and not implying that I lied. if I missed something, or misinterperted please do tell me!
Actually I think i see my mistake I have been trying "systemctl enable root-suspend" before making "/etc/systemd/system/root-resume.service" -
Hi,
I'm on a fully updated Arch_x86-64/KDE initially installed without systemd.
I've have several problems which I suspect to be related to a partial transfer to systemd.
1. During the last full system update, I've got the following error:
(gconftool-2:2709): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
2. What's more, suddenly Arch won't auto-mount anymore and external HD which it did flawlessly before.
3. Although enabled (see below) , systemd journal doesn't seem to work.
4. I lost (power) susprend and hibernate options from KDE's menu
5. When trying to enable several daemons (per systemd's wiki recommendations), i get the following error:
systemctl enable syslog-ng
Operation failed: Invalid argument
[root@Miki_Arch etc]# systemctl enable dbus
Operation failed: Invalid argument
[root@Miki_Arch etc]# systemctl enable cupsd
Operation failed: Invalid argument
I have prepared the new configurations files and enabled the journal- see terminal output:
# ls /etc
ConsoleKit cron.daily ggz.modules iproute2 lvm nsswitch.conf printcap rsyncd.conf sudoers.d
ODBCDataSources cron.deny gimp iptables machine-id ntp.conf profile sane.d sysctl.conf
UPower cron.hourly group irman.conf mail.rc odbc.ini profile.d securetty sysctl.d
X11 cron.monthly group- issue makepkg.conf odbcinst.ini protocols security syslog-ng
adjtime cron.weekly group.bak java-7-openjdk man_db.conf openal protocols.pacnew sensors3.conf systemd
adobe crypttab group.pacnew kde mdadm.conf openldap pulse services tmpfiles.d
anacrontab cups grub.d krb5.conf mime.types os-release rc.conf services.pacnew trusted-key.key
arch-release cupshelpers gshadow ksysguarddrc mke2fs.conf pacman.conf rc.conf.pacnew shadow udev
asound.conf dbus-1 gshadow- ld.so.cache mkinitcpio.conf pacman.d rc.d shadow- updatedb.conf
at-spi2 default gshadow.bak ld.so.conf mkinitcpio.d pam.d rc.local shadow.bak vconsole.conf
avahi depmod.d gshadow.pacnew ld.so.conf.d modprobe.d pango rc.local.shutdown shadow.pacnew vdpau_wrapper.cfg
bash.bash_logout dhcpcd.conf gssapi_mech.conf libao.conf modules-load.d partimaged rc.multi shells wgetrc
bash.bashrc drirc gtk-2.0 libnl mono passwd rc.shutdown skel wpa_supplicant
binfmt.d environment gtk-3.0 libreoffice motd passwd- rc.single slp.conf xdg
ca-certificates fonts healthd.conf lirc mplayer passwd.bak rc.sysinit slp.reg xinetd.d
ca-certificates.conf fstab host.conf locale.conf mtab passwd.pacnew rc_keymaps slp.spi xml
chromium fstab.orig hostname locale.gen mtools.conf pcmcia rc_maps.cfg slsh.rc
clive fuse.conf hosts localtime mysql pkcs11 request-key.conf speech-dispatcher
colord.conf gai.conf hotplug login.defs nanorc pm request-key.d ssh
conf.d gconf inittab logrotate.conf netconfig polkit-1 resolv.conf ssl
cron.d gemrc inputrc logrotate.d nscd.conf ppp rpc sudoers
[root@Miki_Arch etc]# ls /etc/systemd
journald.conf logind.conf ntp-units.d system system.conf user user.conf
[root@Miki_Arch etc]# cat /etc/systemd/journald.conf
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See journald.conf(5) for details
[Journal]
Storage=auto
#.. rest of lines commented
my rc.conf looks as follws:
# cat /etc/rc.conf
# /etc/rc.conf - Main Configuration for Arch Linux
# See 'man 5 rc.conf' for more details
# LOCALIZATION
#HARDWARECLOCK="localtime"
#TIMEZONE="Asia/Jerusalem"
#KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
#LOCALE="en_US.utf8"
DAEMON_LOCALE="yes"
USECOLOR="yes"
# HARDWARE
#MODULES=(microcode)
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
# NETWORKING
#HOSTNAME=Miki_Arch
interface=eth1
address=
netmask=
broadcast=
gateway=
NETWORK_PERSIST="no"
# DAEMONS
DAEMONS=(syslog-ng dbus network lp cupsd hwclock ntpd crond)
Please advise.
Thanksrvc wrote:just out of curiosity, how will it be if i removed systemd-sysvcompat and added the lines in the syslinux.cfg ? any other dep problems might arise are they both mean to do the same job ?
Do not remove it, if you did install it again. The reason behind it is it provides more files than only the init symlink. Never remove packages from the base group if you are not absolutely sure what you are doing. You can see the package is part of the base group with "pacman -Qi" and you can see what it provides with "pacman -Ql package" .
Also check "pacman -Qg base" , so you will not ask if you can remove one of those packages in the future...
pacman -Ql systemd-sysvcompat
systemd-sysvcompat /sbin/
systemd-sysvcompat /sbin/halt
systemd-sysvcompat /sbin/init
systemd-sysvcompat /sbin/poweroff
systemd-sysvcompat /sbin/reboot
systemd-sysvcompat /sbin/runlevel
systemd-sysvcompat /sbin/shutdown
systemd-sysvcompat /sbin/telinit
Last edited by teateawhy (2012-11-12 18:32:59) -
Systemctl enable dhcpcd... doesnt work!
Hi,
as explained in the wiki i would like to have dhcpcd start automatically using "systemctl enable dhcpcd@interface". My problem is, it doesn't work!
"Systemctl start dhcpcd@interface" works just fine aswell as "dhcpcd interface". (btw am I correct in assuming that the first command somehow tells systemd to do what you would do with the second command by yourself ? )
I already got the tip to install a networkmanager, but if possible I'd like to solve this problem directly. Does anyone know what i could do?
FelixA target is roughly speaking a state of the system defined by the services it provides.
You're more or less right there. Give 'systemctl list-units --type=target' a look and you'll see that you have a number of active targets during your current boot session (e.g. basic.target, getty.target, graphical.target). These are in alphabetical order, so pay no mind to the order they appear in. If you look in /usr/lib/systemd/system/ you'll see files defining these targets (e.g. basic.target), and folders named <name>.target.wants (e.g. basic.target.wants). Inside these *.wants folders is a number of symlinks to various systemd units (services, sockets, timers, etc).
Have a look at /usr/lib/systemd/system/multi-user.target, which is your current default target (default.target is a symlink to this file):
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Multi-User
Documentation=man:systemd.special(7)
Requires=basic.target
Conflicts=rescue.service rescue.target
After=basic.target rescue.service rescue.target
AllowIsolate=yes
[Install]
Alias=default.target
Notice that it "Requires" basic.target. Look at that target:
Requires=sysinit.target sockets.target
That requires sysinit.target (and sockets.target), look at sysinit.target:
Wants=local-fs.target swap.target
As far as I know, "Wants" works like "Requires", in that it will pull it into the list of targets to reach, but I think it's more of a soft dependency than an explicit one. That is to say, it'll carry on even if something goes wrong in local-fs.target or swap.target, sysinit.target won't fail. This is where it all goes a bit wibbly-wobbly. You'll probably have noticed that you have a lot more .targets listed in "systemctl list-units --type=target" than you get when you follow the chain of targets, that's partially because each one of these targets pulls in systemd units. Look in their wants folders:
$ ls /usr/lib/systemd/system/{multi-user,basic,sysinit,sockets,local-fs,swap}.target.wants
/usr/lib/systemd/system/multi-user.target.wants:
dbus.service getty.target systemd-ask-password-wall.path systemd-logind.service systemd-user-sessions.service
You'll notice that multi-user.target.wants has a symlink to getty.target.
I'm afraid it gets a little more complicated than that, you see, it's not just .targets that have Requires or Wants, any systemd unit can have them. If you look at /usr/lib/systemd/system/local-fs.target.wants/systemd-remount-fs.service, you'll see that it Wants "local-fs-pre.target". And to further confuse matters, and in relation to your second question, /etc/systemd/system/ contains your local system's custom systemd config. For example, you've just enabled [email protected], which makes a symlink in /etc/systemd/system/multi-user.target.wants/, this gets pulled in (and if there's a conflicting service of the same name, overrides it) at the same time everything in /usr/lib/systemd/system/multi-user.target.wants/ gets pulled in.
So, when multi-user.target gets reached during the boot process, it pulls in all the units listed in the dependency chain files and folders, and then loads the units in /usr/lib/systemd/system/multi-user.target.wants and /etc/systemd/system/multi-user.target.wants.
Hopefully that all makes a certain amount of sense. It's certainly a lot to wrap your head around, and I recommend that you read the manpages for systemd.target, systemd.unit, systemd.service, and systemd.special if you're interested in the subject, they'll help you get a better understanding of the inner workings of systemd. They'll also help you create your own custom targets, if you feel inclined. -
Mountain Lion won't allow me to enable root user
Hi, I'm new to everything Mac, but I'm trying to learn. Just purchased a used mid-2011 iMac from an individual. I love the iMac. Just a few kinks to work out. One is that he had originally named either the user account or home directory (I still can't figure out which) and i'd like to change that name. I found an Apple support article on this (Article HT1428) and I am hopeful it will work for me. However, the first step is to enable the root user. I went to Article PH11331 to follow steps to enable the root user. However, when I select Edit from within the Directory Utility, I am unable to select "Enable Root User", or even "Disable Root User" or "Change Root Password" for that matter. These options are either not there or are greyed out ("Enable Root User" is greyed out). So I have failed to even jump the first hurdle (enabling root user) towards my goal of changing the user account or home directory name (sorry I don't know which is which). Can anyone offer some advice please? Thanks!
Mac Basics: Time Machine
Back up all data to at least two different storage devices.
Boot into Recovery, launch Disk Utility, and erase the startup volume. This operation will destroy all data on the volume, so you had be better be sure of your backups. Install OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.
When you reboot, you'll be prompted to go through the initial setup process. That’s when you transfer the data from one of your backups. For a walkthrough, see here:
Using Setup Assistant
Don't transfer the Guest account, if it was enabled on the old system.
Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with networks that require any kind of authentication other than a WPA or WPA2 Personal password. -
Openvpn: systemctl after suspend
I am using an VPN over openVPN which is enabled on boot by a
systemctl enable [email protected]
which works fine. But once I suspend my Laptop, I cannot connect to the internet any more when resuming. I have to either do a reboot or a systemctl restart [email protected] Is this a bug or is this supposed to work that way?
If yes, how can I get sure, my VPN connection also works after resuming?Hi,
this is the reason:
[oracle@rhas4 ~]$ oerr ora 30511
30511, 00000, "invalid DDL operation in system triggers"
// *Cause: An attempt was made to perform an invalid DDL operation
// in a system trigger. Most DDL operations currently are not
// supported in system triggers. The only currently supported DDL
// operations are table operations and ALTER?COMPILE operations.
// *Action: Remove invalid DDL operations in system triggers.
[oracle@rhas4 ~]$
=;-)
BR,
Lutz -
Enable mode authorization failed.
Have a user that cannot get to en prompt. Here is my trace output:
AAA/AUTHEN: update_user user='lduncan' ruser='(null)' port='telnet146' rem_addr=
'10.128.20.110' authen_type=1 service=ENABLE priv=152007 Oct 16 10:57:07.360 EST
-04:00
AAA/AUTHEN/START (0): port='telnet146' list='(null)' action=LOGIN service=ENABLE
TAC+: send AUTHEN/START packet ver=192 id=626074205
TAC+: Opening TCP/IP connection to 10.129.12.196
TAC+: ver=192 id=626074205 received AUTHEN status = GETPASS2007 Oct 16 10:57:08.
440 EST -04:00
AAA/AUTHEN (626074205): status = GETPASSPassword: 2007 Oct 16 10:57:11.200 EST -
04:00 *62*2007 Oct 16 10:57:11.440 EST -04:00 *69*2007 Oct 16 10:57:11.800 EST -
04:00 *67*2007 Oct 16 10:57:12.050 EST -04:00 *74*2007 Oct 16 10:57:12.300 EST -
04:00 *6f*2007 Oct 16 10:57:12.530 EST -04:00 *65*
2007 Oct 16 10:57:12.950 EST -04:00
AAA/AUTHEN/CONT (626074205): continue_login2007 Oct 16 10:57:12.950 EST -04:00
AAA/AUTHEN (626074205): status = GETPASS
TAC+: send AUTHEN/CONT packet id=626074205
TAC+: ver=192 id=626074205 received AUTHEN status = PASS2007 Oct 16 10:57:13.460
EST -04:00
AAA/AUTHEN (626074205): status = PASS2007 Oct 16 10:57:13.460 EST -04:00 return
PASS
2007 Oct 16 10:57:13.460 EST -04:00
AAA/AUTHOR : ptr2=enable
2007 Oct 16 10:57:13.470 EST -04:00
AAA/AUTHOR : Add AV service=shell
2007 Oct 16 10:57:13.470 EST -04:00
AAA/AUTHOR : Add AV cmd=enable
2007 Oct 16 10:57:13.470 EST -04:00
AAA/AUTHOR/TACACS+ cmd author (413075467): Port='telnet146' list='(null)' servic
e=CMD2007 Oct 16 10:57:13.480 EST -04:00
AAA/AUTHOR/TACACS+ cmd author: (413075467) user='lduncan'2007 Oct 16 10:57:13.4
80 EST -04:00
AAA/AUTHOR/TACACS+ cmd author: (413075467) send AV service=shell2007 Oct 16 10:5
7:13.480 EST -04:00
AAA/AUTHOR/TACACS+ cmd author: (413075467) send AV cmd=enable
AAA/AUTHOR/TACACS+ cmd author: (413075467) Method=TAC_PLUS2007 Oct 16 10:57:13.4
90 EST -04:00
AAA/AUTHOR/TAC+: (413075467): user=lduncan2007 Oct 16 10:57:13.490 EST -04:00
AAA/AUTHOR/TAC+: (413075467): send AV service=shell2007 Oct 16 10:57:13.490 EST
-04:00
AAA/AUTHOR/TAC+: (413075467): send AV cmd=enable
TAC+: Opening TCP/IP connection to 10.129.12.196
TAC+: (413075467): received author response status = FAIL2007 Oct 16 10:57:14.50
0 EST -04:00
AAA/AUTHOR (413075467): Post authorization status = FAIL2007 Oct 16 10:57:14.500
EST -04:00
AAA/AUTHOR : do_author result=12007 Oct 16 10:57:14.500 EST -04:00 %AAA: author:
tacacs_plus_author ret=1.
Enable mode authorization faile
I have checked his user info and group info in tacacs.It seems that you have command author configured that is why user in not able to issue it.
What kind of user is it ? Admin or normal user.
To make him login you need to make changes in the command author set.
Make one command autho set in acs --->shared profile componenets.
add-->give any name "Full access "---> Put radio button to permit and submit.
Now go to that group-->Under Shell Command Authorization Set---> Choose--->Assign a Shell Command Authorization Set for any network device and select FULL ACCESS from list and submit apply.
Now it should let you in.
Caution : This is let that uses to issue all commands
Also provide me more info if you want user to deny some commands. We need to set up command autho set accordingly.
Regards,
~JG
Please rate helpful posts -
Error while Enabling a user in OIM
Hi,
I have a requirement where i need to disable and enable OIM users based on a UDF . If the UDF says Active user should be enabled and if it says "deleted" user should be disabled. I'm able to "Disable" a user present in "Active" state but not vice versa. My entity adapter is as follows
statusUpdate(String userKey,String Status){
OIMConnectionManagerImpl oimConn = new OIMConnectionManagerImpl();
tcUserOperationsIntf tcUser = oimConn.getUserAPI();
tcResultSet tcres = null;
HashMap map = new HashMap();
map.put("Users.Key",userKey);
tcres = tcUser.findUsers(map);
String s1=tcres.getStringValue("Users.Status");
if(Status.equalsIgnoreCase("Active") )
if(s1.equalsIgnoreCase("Disabled")){
tcUser.enableUser(Long.parseLong(userKey));
if(Status.equalsIgnoreCase("Deleted") )
if(s1.equalsIgnoreCase("Active")){
tcUser.disableUser(Long.parseLong(userKey));
My error is as follows
[com.oim.util.OIMConnectionManagerImpl] Unable to create factory instance
java.lang.NullPointerException
Edited by: user10665408 on Jul 1, 2009 3:14 PMI have done sm changes now:
Try this.
If some import is missing or some spelling mistakes are there just correct those. It's just for reference.
Put import for map also.
package com.Tst.oim;
import Thor.API.Operations.tcUserOperationsIntf;
import Thor.API.tcResultSet;
import Thor.API.tcUtilityFactory;
import com.thortech.xl.crypto.tcCryptoUtil;
import com.thortech.xl.crypto.tcSignatureMessage;
import com.thortech.xl.util.config.ConfigurationClient;
import java.util.Hashtable;
public class CreateFile {
tcUtilityFactory utilFactory = null;
tcSignatureMessage moSignature = null;
tcUserOperationsIntf moUserUtility = null;
tcResultSet userResultSet = null;
ConfigurationClient.ComplexSetting myConfig =
ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
final Hashtable env = myConfig.getAllSettings();
public void Enable(String userid) {
try {
System.out.println("TRY");
moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
utilFactory = new tcUtilityFactory(env, moSignature);
moUserUtility = (tcuserOperations)utilfactory.getutility("Thor.API.Operations.tcUserOperations");
Map a = new HashMap();
a.put("Users.User ID", userid);
tcResultSet userset = moUserUtility.findAllUsers(a);
long ukey = userset.getLongValue("Users.Key");
moUserUtility.enableuser(ukey);
} catch (Exception e) {
e.printStackTrace();
Edited by: Dost -
Not able to enable SSH user equivalency for RAC on RHEL 4
Hi All,
I am trying to install oracle RAC 11g on RHEL4 (on VMware), I am using below document for reference.
http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnOEL5UsingVMware.php
Every thing went fine till "SSH user equivalency", but I am not able to SSH and SCP between servers without entering passwords.
I have tried removing .ssh folder & recreating pub file twice but it did not helped.
am i missing something?
Please advice.
Thanks,
Abhay.Configure SSH on each node in the cluster. Log in as the "oracle" user and perform the following tasks on each node.
su - oracle
mkdir ~/.ssh
chmod 700 ~/.ssh
/usr/bin/ssh-keygen -t rsa # Accept the default settings.
The RSA public key is written to the ~/.ssh/id_rsa.pub file and the private key to the ~/.ssh/id_rsa file.
Log in as the "*oracle*" user on RAC1, generate an "authorized_keys" file on RAC1 and copy it to RAC2 using the following commands.
su - oracle
cd ~/.ssh
cat id_rsa.pub >> authorized_keys
scp authorized_keys rac2:/home/oracle/.ssh/
Next, log in as the "oracle" user on RAC2 and perform the following commands.
su - oracle
cd ~/.ssh
cat id_rsa.pub >> authorized_keys
scp authorized_keys rac1:/home/oracle/.ssh/
The "authorized_keys" file on both servers now contains the public keys generated on all RAC nodes.
To enable SSH user equivalency on the cluster member nodes issue the following commands on each node.
ssh rac1 date
ssh rac2 date
ssh rac1.localdomain date
ssh rac2.localdomain date
exec /usr/bin/ssh-agent $SHELL
/usr/bin/ssh-add
You should now be able to SSH and SCP between servers without entering passwords.
hope, this may helps you.
enjoy.
if you are unable to resolve it, please refer:-
http://download.oracle.com/docs/cd/B28359_01/rac.111/b28252/preparing.htm#BGBBDHIB
http://dsstos. blogspot.com/2009/03/linux-oracle-rac-and-bonding-conundrum.html -
Problem in GTC - Enable/Disable user task
Hi,
I am trying to enable a user for a GTC, but I encounter the following errors while doing so:
10/08/25 02:19:23 Running GENERICADAPTER
10/08/25 02:19:23 Target Class = com.thortech.xl.gc.runtime.GCAdapterLibrary
ERROR,25 Aug 2010 02:19:23,959,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData encounter some problems: The table PS_RSTR_FMSU_VW does not exist in the target database schema oimuser
com.thortech.xl.gc.exception.DBException: The table PS_RSTR_FMSU_VW does not exist in the target database schema oimuser
at com.thortech.xl.gc.impl.common.DBFacade.getType(Unknown Source)
at com.thortech.xl.gc.impl.common.DBFacade.getSchema(Unknown Source)
at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.getSchema(Unknown Source)
at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.sendData(Unknown Source)
at com.thortech.xl.gc.runtime.GCAdapterLibrary.executeFunctionality(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFMSUSER_GTC.GENERICADAPTER(adpFMSUSER_GTC.java:125)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFMSUSER_GTC.implementation(adpFMSUSER_GTC.java:70)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
Also, the user 'oimuser' has sufficient privileges for the view 'PS_RSTR_FMSU_VW'. The data in the view is accessible and can be read when logged-in as oimuser in SQL developer.
Please help me in resolving this issue.
Regards.Since this is a view, the user does not have Write permissions.
Regards. -
Enabling a User through OIM API
Hi I am trying to enable a user through OIM API, However the end date is already passed for that user, I am setting up a new end date through the Program (showm below). However the update user is not working (i am not sure).
Map usermap = new HashMap();
usermap.put("Users.User ID", User_id );
Map grpmap = new HashMap();
grpmap.put("Groups.Group Name", Group_Name);
tcResultSet ts = userClient.findUsers(usermap); //find all users
String existing_end_date = ts.getStringValue("Users.End Date");
tcResultSet tg = groupClient.findGroups(grpmap); //find requireq group
long ukey = ts.getLongValue("Users.Key");
long gkey = tg.getLongValue("Groups.Key"); //find group key
// ENABLE THE USER
java.util.Date new_end_date = new java.util.Date(111,1,1);
Calendar cal = Calendar.getInstance();
cal.setTime(new_end_date);
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
String Str1 = dateFormat.format(cal.getTime());
String Str2 = existing_end_date + " 12:00:00";
System.out.println(User_id+" OLD End Date:" + Str2 + " New End Date: " + Str1);
Map usermap2 = new HashMap();
usermap2.put("Users.User ID", User_id );
usermap2.put("Users.End Date", Str1);
userClient.updateUser(ts,usermap2);
userClient.enableUser(ukey);
I am getting the following error:
U0000018 OLD End Date:2009-09-30 12:00:00 New End Date: 2011-02-01 12:00:00
2/12/2010 15:02:53 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
Thor.API.Exceptions.tcAPIException: The user cannot be enabled because the end date is passed.
Not sure why it is happening. It looks like the Updateuser is not working, or something else?
Please advise. Thanks in advance.Hi Suren,
thanks for the note.
I found that as soon as I enable the user, I am getting the followimg messages in the opmn logs:
INFO,06 Dec 2010 10:55:41,841,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
INFO,06 Dec 2010 10:55:41,944,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
INFO,06 Dec 2010 10:55:42,402,[XELLERATE.JAVACLIENT],System Event Handler: Enabling the User
INFO,06 Dec 2010 10:55:42,421,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
INFO,06 Dec 2010 10:55:42,427,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
INFO,06 Dec 2010 10:55:42,439,[XELLERATE.JAVACLIENT],System Event Handler: Changing application data based on Organization change.
INFO,06 Dec 2010 10:55:42,442,[XELLERATE.JAVACLIENT],System Event Handler: Auto-Group Membership Event.
INFO,06 Dec 2010 10:55:43,715,[XELLERATE.JAVACLIENT],System Event Handler: Evaluating User Policies
So, the access policies are getting evaluated, triggering provisioning processes.
What I am planning to do is, to disable the access policies and try to run the Program.
Because of this issue, my Program is throwing an error (until I looked into the opmn logs, it doesn't make sense).
6/12/2010 10:55:50 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
Thor.API.Exceptions.tcAPIException: Error occurred enabling Xellerate User instance.
Regards
Vijay Chinnasamy -
How to enable root user in Yosemite
I see in SEARCH how to enable root user in LION but not Yosemite. Does anyone know how? The sys prefs button choices is different so can't find out how to do.
Do a backup before doing anything. To delete them you will need to enable the Root User and log in as the Root User. You need to be very careful while logged in as the Root User because you can delete any file and could potentially ruin your system. As soon as the non-functioning applications are deleted, log out and use your normal account. Did I mention doing a backup?
Root User -
I want to enable a user to enter a start and end date to
define the period they want to search for records of members who
joined on certain dates. Funny thing is...I've got it to work half
of the time. For e.g. I have 4 records between 26/10/2005 and
1/08/2006. When I enter 01/01/2005 as startDate and 31/08/2006 as
endDate, I get the 4 records. However, if I alter the endDate to
01/09/2006 I get every record in the database!!!??? Why's this? I
can't get my head around it!
Here's my code:
First the code for the form the user input the search
criteria on:
<html>
<body>
<FORM action="memberJDateSearch.cfm" method="post">
<p>Start Date: <input type="text"
name="startDate">
<br>End Date: <input type="text" name="endDate">
<input type="reset" value="Clear">
<input type="submit" value="Submit">
</FORM>
</body>
</html>
Simple enough. Now the code for the process and display page:
<html>
<body>
<cfquery name="memberJDateSearch"
datasource="jpkelle2-access">
SELECT *
From members
WHERE ((joinDate BETWEEN #CreateODBCDate(startDate)# AND
#CreateODBCDate(endDate)#))
</cfquery>
<table border=1 bgcolor="beige" cellpadding="3"
cellspacing="0">
<tr>
<th>Member ID</th>
<th>Name</th>
<th>Sex</th>
<th>Date of Birth</th>
<th>Address</th>
<th>Email</th>
<th>Date Joined</th>
</tr>
<CFOUTPUT Query="memberJDateSearch">
<tr>
<td><center>#memberID#<center></td>
<td width="15%">#forename# #initial#
#surname#</td>
<td>#sex#</td>
<td width="10%">#disp('#dob#')#</td>
<td>#address#, #town#, #county#, #postCode#</td>
<td>#email#</td>
<td width="10%">#disp('#joinDate#')#</td>
</tr>
</CFOUTPUT>
</table>
<hr><p>End of members list.</p>
</body>
</html>
any ideas? please help me.Try formatting your dates first (before the CreateODBCDate
call). I just tried this on my test page and it worked properly. I
removed the DateFormat calls, keeping the dates in your format and
it didn't work. See if something like the following will help:
<cfset startDate =
DateFormat("31/01/2006","dd/mm/yyyy")/>
<cfset endDate =
DateFormat("01/09/2007","dd/mm/yyyy")/>
<cfquery name="memberJDateSearch"
datasource="jpkelle2-access">
SELECT *
From members
WHERE ((joinDate BETWEEN #CreateODBCDate(startDate)# AND
#CreateODBCDate(endDate)#))
</cfquery> -
On New Instance computation not firing if user fails authorisation
Hi there,
In my Apex 4 application I have:
- An application-level field
- An On New Instance computation that computes the above field (no conditions or authorisations set on it)
- A public page
- A secure page to which the user I use to log in doesn't have access
If, after logging in, I go straight to the public page and then to the secure page, I get the error "user not authorised" but the application item is computed.
However, if I go straight to the secure page after logging in the application I get the error message but item is not computed! (I know that because I am displaying the item in the error page template using the format &F_FIELD.)
I thought On-New-Instance-Anything should always be executed.. but that does not seem to be the case... Or am I missing something?
How to fix this? I need the on new instance computation to always execute even if the user fails authorisation.
Thanks
Luis- If I understand you correctly, you are suggesting to move the application computation into the login page, as a page computation?An assignment statement in a PL/SQL process that runs after the login process could work, but it would be safer to use an application-level computation that fires only after APP_USER is definitely set to the authenticated username. The condition would be something like "if :MY_USER_ID_ITEM is null and :APP_USER not in ('nobody', 'HTMLDB_PUBLIC_USER','APEX_PUBLIC_USER','ANONYMOUS')...". Then your application will work if you decide not to have a login page someday, e.g., if you switch to SSO.
If the computation point is "after submit", why do I need to worry about "per session"? It will be fired only when the user enter/re-enter the system, right?Yes.
My logout URL was constructed by page wizard. I don't see any session id there. Should I look anywhere specific?If you still have problems with an on-new instance event not firing after a logout URL results in a new session being created let me know. It may be moot for this case.
Scott -
Enabling end users to create and upload their own layouts for PDF reports
Using the PDF printing features in APEX 3.x and BI Publisher, you can create professional looking report designs with no programming knowledge, simply by using the built-in wizards of the BI Publisher Word Plug-In, and a little knowledge of how to use MS Word. The nice thing about using the Word Plug-In is that even the end users of your APEX applications could potentially do this. The only problem is, that typically those report layouts are stored under the Shared Components of your application, and end users generally don't have access to the Application Builder, all they typically use is your APEX application. So then why not simply add an interface to your APEX application that lets your end users upload their own layouts and dynamically link them to APEX report queries at runtime? I put together a sample application that demonstrates this technique, you can try it out on apex.oracle.com or download the application and try it on your own APEX instance. Here's the link to my Blog with more information:
http://marcsewtz.blogspot.com/2008/05/enabling-end-users-to-create-their-own.html
Regards,
MarcHi Marc,
Very nice app. I tried to create a new template with success.
Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://apex-evangelists.com/
-- http://apexblogs.info/
Maybe you are looking for
-
3rd Gen Ipod touch stuck in recovery mode....please help!
I just wanted to add some music for a birthday party and this has become a total failure. worked fine yesterday...so i plud it into my laptop and it asks to update itunes, for the sake of being in a hurry i skipped that, and came back and all of a su
-
Determination of Base price condition type depending on Item Category
Dear All, The requirement I have is as stated below: There are two materials A and B that are individually sellable materials. But during a specific time period the company decides to give a scheme where in Material B is given as free when a particul
-
Adding 3 Airport Extremes to Linksys WGT4400N in Bridge Mode Not working
I have a network that starts in a homerun closet and is expanded across 5 acres to differnet locations via CAT5e. Homerun Closet has Linksys WGT4400N with Cat5e running to three different locations on property. The cables are within length limitation
-
Replacing a PLC with LabView Article
I just read the article "Replacing a Programmable Logic Controller (PLC) with LabVIEW and FieldPoint for Composting Plant Automation ". I am very concerned by the author's lack of knowledge about current PLC's. This article does not fairly compare th
-
Hi everybody, I've to upgrade a CRS-1/8 single chassis from RP (3.8.2) to PRP (4.1.2). I'm studying the following document: http://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r4-0/migration/guide/prpmigration.pdf I'm trying to deeply und